Package dev.latvian.mods.kubejs.command
Enum Class ArgumentTypeWrappers
- All Implemented Interfaces:
ArgumentTypeWrapper,Serializable,Comparable<ArgumentTypeWrappers>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassWrapper<?> byName(net.minecraft.resources.ResourceLocation name) com.mojang.brigadier.arguments.ArgumentType<?> create(CommandRegistryKubeEvent event) getResult(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String input) static voidprintAll()static <T> ArgumentTypeWrapperregistry(CommandRegistryKubeEvent event, net.minecraft.resources.ResourceLocation reg) time(int minRequired) static ArgumentTypeWrappersReturns the enum constant of this class with the specified name.static ArgumentTypeWrappers[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
FLOAT
-
DOUBLE
-
INTEGER
-
LONG
-
STRING
-
GREEDY_STRING
-
WORD
-
ENTITY
-
ENTITIES
-
PLAYER
-
PLAYERS
-
GAME_PROFILE
-
BLOCK_POS
-
BLOCK_POS_LOADED
-
COLUMN_POS
-
VEC3
-
VEC2
-
VEC3_CENTERED
-
VEC2_CENTERED
-
BLOCK_STATE
-
BLOCK_PREDICATE
-
ITEM_STACK
-
ITEM_PREDICATE
-
COLOR
-
COMPONENT
-
MESSAGE
-
NBT_COMPOUND
-
NBT_TAG
-
NBT_PATH
-
PARTICLE
-
ANGLE
-
ROTATION
-
SWIZZLE
-
ITEM_SLOT
-
RESOURCE_LOCATION
-
ENTITY_ANCHOR
-
INT_RANGE
-
FLOAT_RANGE
-
DIMENSION
-
TIME
-
UUID
-
OBJECTIVE
-
-
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
-
byName
-
registry
public static <T> ArgumentTypeWrapper registry(CommandRegistryKubeEvent event, net.minecraft.resources.ResourceLocation reg) -
time
-
printAll
public static void printAll() -
create
- Specified by:
createin interfaceArgumentTypeWrapper
-
getResult
public Object getResult(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String input) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
getResultin interfaceArgumentTypeWrapper- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-