Enum Class DebugCommands
- All Implemented Interfaces:
com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>,Serializable,Comparable<DebugCommands>,Constable,IEnumCommand
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface com.mojang.brigadier.Command
SINGLE_SUCCESS -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build(net.minecraft.commands.CommandBuildContext context) Gets the name of the command.Gets the required permission level to perform the command.intrun(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) static DebugCommandsReturns the enum constant of this class with the specified name.static DebugCommands[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MISSING_TAG_NAMES
-
MISSING_BLOCK_DROPS
-
LOOT_POOL_HASH
-
SIMPLE_TABLES
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
build
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build(net.minecraft.commands.CommandBuildContext context) -
getCommandName
Description copied from interface:IEnumCommandGets the name of the command. This must be unique for each enum value.- Specified by:
getCommandNamein interfaceIEnumCommand- 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:
runin interfacecom.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
requiredPermissionLevel
Description copied from interface:IEnumCommandGets the required permission level to perform the command.- Specified by:
requiredPermissionLevelin interfaceIEnumCommand- Returns:
- The required permission level.
-