Class CommandNode
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode
-
Constructor Summary
ConstructorsConstructorDescriptionCommandNode(@NonNull CommandType type, boolean executable, boolean allowsRestricted, int @NonNull [] childIndices, OptionalInt redirectIndex, String name, CommandParser parser, CommandProperties properties, net.kyori.adventure.key.Key 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.net.kyori.adventure.key.KeySuggestions type, if present.@NonNull CommandTypegetType()Type of command.inthashCode()booleanWhether restricted commands are allowed.booleanWhether the node is executable.@NonNull StringtoString()
-
Constructor Details
-
CommandNode
public CommandNode(@NonNull @NonNull CommandType type, boolean executable, boolean allowsRestricted, int @NonNull [] childIndices, OptionalInt redirectIndex, String name, CommandParser parser, CommandProperties properties, net.kyori.adventure.key.Key suggestionType)
-
-
Method Details
-
getType
Type of command. -
isExecutable
public boolean isExecutable()Whether the node is executable. -
isAllowsRestricted
public boolean isAllowsRestricted()Whether restricted commands are allowed. -
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
public net.kyori.adventure.key.Key getSuggestionType()Suggestions type, if present. SeeSuggestionTypefor vanilla defaults. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-