Class CommandNode
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode
-
Constructor Summary
ConstructorsConstructorDescriptionCommandNode(@NonNull CommandType type, boolean executable, int @NonNull [] childIndices, OptionalInt redirectIndex, String name, CommandParser parser, CommandProperties properties, String suggestionType) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanint @NonNull []Child node indices.getName()Name of the node, if type is LITERAL or ARGUMENT.Node parser, if type is ARGUMENT.Command properties, if type is ARGUMENT and the parser has properties.Redirect index, or empty if none is set.Suggestions type, if present.@NonNull CommandTypegetType()Type of command.inthashCode()booleanWhether the node is executable.@NonNull StringtoString()
-
Constructor Details
-
CommandNode
public CommandNode(@NonNull @NonNull CommandType type, boolean executable, int @NonNull [] childIndices, OptionalInt redirectIndex, String name, CommandParser parser, CommandProperties properties, String suggestionType)
-
-
Method Details
-
getType
Type of command. -
isExecutable
public boolean isExecutable()Whether the node is executable. -
getChildIndices
public int @NonNull [] getChildIndices()Child node indices. -
getRedirectIndex
Redirect index, or empty if none is set. -
getName
Name of the node, if type is LITERAL or ARGUMENT. -
getParser
Node parser, if type is ARGUMENT. -
getProperties
Command properties, if type is ARGUMENT and the parser has properties. -
getSuggestionType
Suggestions type, if present. SeeSuggestionTypefor vanilla defaults. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-