Enum Class HandCommand

java.lang.Object
java.lang.Enum<HandCommand>
net.darkhax.bookshelf.common.impl.command.HandCommand
All Implemented Interfaces:
com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>, Serializable, Comparable<HandCommand>, Constable, IEnumCommand

public enum HandCommand extends Enum<HandCommand> implements IEnumCommand
  • Enum Constant Details

  • Method Details

    • values

      public static HandCommand[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HandCommand valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • run

      public int run(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      run in interface com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getCommandName

      public String getCommandName()
      Description copied from interface: IEnumCommand
      Gets the name of the command. This must be unique for each enum value.
      Specified by:
      getCommandName in interface IEnumCommand
      Returns:
      The name of the command.
    • build

      public static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build(net.minecraft.commands.CommandBuildContext context)