Enum Class HandCommand
- All Implemented Interfaces:
com.mojang.brigadier.Command<net.minecraft.commands.CommandSourceStack>,Serializable,Comparable<HandCommand>,Constable,IEnumCommand
-
Nested Class Summary
Nested 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.intrun(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context) static HandCommandReturns the enum constant of this class with the specified name.static HandCommand[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface net.darkhax.bookshelf.common.api.commands.IEnumCommand
requiredPermissionLevel
-
Enum Constant Details
-
ID
-
STRING
-
INGREDIENT
-
STACK_JSON
-
STACK_NBT
-
COMPONENTS
-
TAGS
-
-
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
-
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
-
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.
-
build
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<net.minecraft.commands.CommandSourceStack> build(net.minecraft.commands.CommandBuildContext context)
-