CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
An argument that represents chat with entity selectors. More...
Public Member Functions | |
AdventureChatArgument (String nodeName) | |
Constructs a Chat argument with a given node name. More... | |
Class< Component > | getPrimitiveType () |
CommandAPIArgumentType | getArgumentType () |
AdventureChatArgument | withPreview (PreviewableFunction< Component > preview) |
Optional< PreviewableFunction< Component > > | getPreview () |
boolean | isLegacy () |
AdventureChatArgument | usePreview (boolean usePreview) |
Argument< T > | instance () |
Returns the instance of this class with the class Impl. More... | |
T | withPreview (PreviewableFunction< A > preview) |
Sets the PreviewableFunction for this argument. More... | |
An argument that represents chat with entity selectors.
@apiNote Returns a Component
object
dev.jorel.commandapi.arguments.AdventureChatArgument.AdventureChatArgument | ( | String | nodeName | ) |
Constructs a Chat argument with a given node name.
Represents fancy greedy strings that can parse entity selectors
nodeName | the name of the node for argument |
|
inherited |
Returns the instance of this class with the class Impl.
Used for chaining builder methods.
|
inherited |
Sets the PreviewableFunction
for this argument.
This function will run when a player requests a chat preview from the server. The function's PreviewInfo
will be populated based on the input for the relevant player that requests the chat preview.
preview | the function to use for chat preview generation |