Interface IEnumCommand
- All Superinterfaces:
com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>
- All Known Implementing Classes:
DebugCommands,HandCommand
public interface IEnumCommand
extends com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>
Allows an enum to be used as a branching command path.
-
Field Summary
Fields inherited from interface com.mojang.brigadier.Command
SINGLE_SUCCESS -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the command.default PermissionLevelGets the required permission level to perform the command.Methods inherited from interface com.mojang.brigadier.Command
run
-
Method Details
-
getCommandName
String getCommandName()Gets the name of the command. This must be unique for each enum value.- Returns:
- The name of the command.
-
requiredPermissionLevel
Gets the required permission level to perform the command.- Returns:
- The required permission level.
-