Enum Class DebugCommands

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

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

    • MISSING_TAG_NAMES

      public static final DebugCommands MISSING_TAG_NAMES
    • MISSING_BLOCK_DROPS

      public static final DebugCommands MISSING_BLOCK_DROPS
    • LOOT_POOL_HASH

      public static final DebugCommands LOOT_POOL_HASH
  • Method Details

    • values

      public static DebugCommands[] 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 DebugCommands 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
    • build

      public static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build(net.minecraft.commands.CommandBuildContext context)
    • 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.
    • 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
    • requiredPermissionLevel

      public PermissionLevel requiredPermissionLevel()
      Description copied from interface: IEnumCommand
      Gets the required permission level to perform the command.
      Specified by:
      requiredPermissionLevel in interface IEnumCommand
      Returns:
      The required permission level.