java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.command.CommandNode

public class CommandNode extends Object
  • Constructor Details

  • Method Details

    • getType

      @NonNull public @NonNull CommandType getType()
      Type of command.
    • isExecutable

      public boolean isExecutable()
      Whether the node is executable.
    • getChildIndices

      public int @NonNull [] getChildIndices()
      Child node indices.
    • getRedirectIndex

      public OptionalInt getRedirectIndex()
      Redirect index, or empty if none is set.
    • getName

      public String getName()
      Name of the node, if type is LITERAL or ARGUMENT.
    • getParser

      public CommandParser getParser()
      Node parser, if type is ARGUMENT.
    • getProperties

      public CommandProperties getProperties()
      Command properties, if type is ARGUMENT and the parser has properties.
    • getSuggestionType

      public String getSuggestionType()
      Suggestions type, if present. See SuggestionType for vanilla defaults.
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object