public enum MinecraftArgumentType extends java.lang.Enum<MinecraftArgumentType>
ArgumentTypes.
This is for older versions from 1.13 to 1.19.2.
| Enum Constant and Description |
|---|
ANGLE
Represents an angle.
|
BLOCK_POS
A location, represented as 3 numbers (which must be integers).
|
BLOCK_PREDICATE
A block, or a block tag.
|
BLOCK_STATE
A block state, optionally including NBT and state information.
|
COLOR
A chat color.
|
COLUMN_POS
A column location, represented as 3 numbers (which must be integers).
|
COMPONENT
A JSON Chat component.
|
DIMENSION
Represents a dimension.
|
ENCHANTMENT
Represents a item enchantment.
|
ENTITY
A selector, player name, or UUID.
|
ENTITY_ANCHOR
The entity anchor related to the facing argument in the teleport command,
is feet or eyes.
|
ENTITY_SUMMON
Represents an entity summon.
|
FLOAT_RANGE
A floating-point range of values with a min and a max.
|
FUNCTION
A function.
|
GAME_PROFILE
A player, online or not.
|
INT_RANGE
An integer range of values with a min and a max.
|
ITEM_PREDICATE
An item, or an item tag.
|
ITEM_SLOT
A name for an inventory slot.
|
ITEM_STACK
An item, optionally including NBT.
|
MESSAGE
A regular message, potentially including selectors.
|
NBT
An NBT value, parsed using JSON-NBT rules.
|
NBT_PATH
A path within an NBT value, allowing for array and member accesses.
|
NBT_TAG
Represents a partial NBT tag, usable in data modify command.
|
OBJECTIVE_CRITERIA
A single score criterion.
|
OPERATION
A scoreboard operator.
|
PARTICLE
A particle effect (an identifier with extra information following it for
specific particles, mirroring the Particle packet)
|
POTION_EFFECT
A potion effect.
|
RESOURCE_LOCATION
An Identifier.
|
ROTATION
An angle, represented as 2 numbers (which may have a decimal point, but will be moved to the
center of a block if none is specified).
|
SCORE_HOLDER
Something that can join a team.
|
SCOREBOARD_OBJECTIVE
A scoreboard objective.
|
SCOREBOARD_SLOT
A scoreboard operator.
|
SWIZZLE
A collection of up to 3 axes.
|
TEAM
The name of a team.
|
TEMPLATE_MIRROR
Template mirror
|
TEMPLATE_ROTATION
Template rotation
|
TIME
Represents a time duration.
|
UUID
Represents a UUID value.
|
VECTOR_2
A location, represented as 2 numbers (which may have a decimal point, but will be moved to the center
of a block if none is specified).
|
VECTOR_3
A location, represented as 3 numbers (which may have a decimal point, but will be moved to the
center of a block if none is specified).
|
| Modifier and Type | Method and Description |
|---|---|
<T> @NotNull com.mojang.brigadier.arguments.ArgumentType<T> |
create(java.lang.Object... arguments)
Creates an instance of this argument type
|
<T> @NotNull java.util.Optional<com.mojang.brigadier.arguments.ArgumentType<T>> |
createIfPresent(java.lang.Object... arguments)
Creates an instance of this argument type, wrapped in an optional.
|
<T> @NotNull com.mojang.brigadier.arguments.ArgumentType<T> |
get()
Returns the argument type represented by this enum value, otherwise
throws an exception
|
<T> @NotNull java.util.Optional<com.mojang.brigadier.arguments.ArgumentType<T>> |
getIfPresent()
Returns the argument type represented by this enum value, wrapped
inside an
Optional |
boolean |
isSupported()
Checks if this argument type is supported in this Minecraft version
|
boolean |
requiresParameters()
Checks if this argument type requires parameters
|
static MinecraftArgumentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MinecraftArgumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MinecraftArgumentType ENTITY
Parameters: - boolean single - boolean playerOnly
public static final MinecraftArgumentType GAME_PROFILE
public static final MinecraftArgumentType COLOR
reset.
Case-insensitive.public static final MinecraftArgumentType COMPONENT
public static final MinecraftArgumentType MESSAGE
public static final MinecraftArgumentType NBT
public static final MinecraftArgumentType NBT_TAG
public static final MinecraftArgumentType NBT_PATH
public static final MinecraftArgumentType SCOREBOARD_OBJECTIVE
public static final MinecraftArgumentType OBJECTIVE_CRITERIA
public static final MinecraftArgumentType SCOREBOARD_SLOT
public static final MinecraftArgumentType SCORE_HOLDER
public static final MinecraftArgumentType TEAM
public static final MinecraftArgumentType OPERATION
public static final MinecraftArgumentType PARTICLE
public static final MinecraftArgumentType ANGLE
public static final MinecraftArgumentType ITEM_SLOT
public static final MinecraftArgumentType RESOURCE_LOCATION
public static final MinecraftArgumentType POTION_EFFECT
public static final MinecraftArgumentType ENCHANTMENT
public static final MinecraftArgumentType ENTITY_SUMMON
public static final MinecraftArgumentType DIMENSION
public static final MinecraftArgumentType TIME
public static final MinecraftArgumentType UUID
public static final MinecraftArgumentType BLOCK_POS
public static final MinecraftArgumentType COLUMN_POS
public static final MinecraftArgumentType VECTOR_3
public static final MinecraftArgumentType VECTOR_2
public static final MinecraftArgumentType ROTATION
public static final MinecraftArgumentType SWIZZLE
public static final MinecraftArgumentType BLOCK_STATE
public static final MinecraftArgumentType BLOCK_PREDICATE
public static final MinecraftArgumentType ITEM_STACK
public static final MinecraftArgumentType ITEM_PREDICATE
public static final MinecraftArgumentType FUNCTION
public static final MinecraftArgumentType ENTITY_ANCHOR
public static final MinecraftArgumentType INT_RANGE
public static final MinecraftArgumentType FLOAT_RANGE
public static final MinecraftArgumentType TEMPLATE_MIRROR
public static final MinecraftArgumentType TEMPLATE_ROTATION
public static MinecraftArgumentType[] values()
for (MinecraftArgumentType c : MinecraftArgumentType.values()) System.out.println(c);
public static MinecraftArgumentType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isSupported()
public boolean requiresParameters()
@NotNull public <T> @NotNull com.mojang.brigadier.arguments.ArgumentType<T> get()
T - The argument typejava.lang.IllegalArgumentException - if not supported in this versionjava.lang.IllegalArgumentException - if this argument requires arguments. See create(Object...)@NotNull public <T> @NotNull com.mojang.brigadier.arguments.ArgumentType<T> create(java.lang.Object... arguments)
T - The argument ttypearguments - Arguments to construct the argument type withjava.lang.IllegalArgumentException - if not supported in this version@NotNull public <T> @NotNull java.util.Optional<com.mojang.brigadier.arguments.ArgumentType<T>> getIfPresent()
OptionalT - The argument typejava.lang.IllegalArgumentException - if this argument requires arguments. See createIfPresent(Object...)@NotNull public <T> @NotNull java.util.Optional<com.mojang.brigadier.arguments.ArgumentType<T>> createIfPresent(java.lang.Object... arguments)
T - The argument ttypearguments - Arguments to construct the argument type with