public enum MinecraftArgumentTypes extends Enum<MinecraftArgumentTypes>
Source: Minecraft wiki, where you can find examples.
Enum Constant and Description |
---|
BLOCK_POS |
BLOCK_PREDICATE |
BLOCK_STATE |
COLOR |
COMPONENT |
DIMENSION |
ENTITY
Constructor parameters: single, playersOnly
|
ENTITY_ANCHOR |
ENTITY_SUMMON |
FLOAT_RANGE |
FUNCTION |
GAME_PROFILE |
INT_RANGE |
ITEM_ENCHANTMENT |
ITEM_PREDICATE |
ITEM_SLOT |
ITEM_STACK |
MESSAGE |
MOB_EFFECT |
NBT_COMPOUND_TAG |
NBT_PATH |
NBT_TAG |
OBJECTIVE |
OBJECTIVE_CRITERIA |
OPERATION |
PARTICLE |
RESOURCE_LOCATION
Responsible for both advancements and recipes.
|
ROTATION |
SCORE_HOLDER
Constructor parameters: multiple
|
SCOREBOARD_SLOT |
SWIZZLE |
TEAM |
TIME |
UUID |
VEC2
Constructor parameters: centerCorrect
|
VEC3
Constructor parameters: centerCorrect
|
Modifier and Type | Method and Description |
---|---|
com.mojang.brigadier.arguments.ArgumentType<?> |
getArgumentType()
Returns the brigadier
ArgumentType of the argument, if it is present. |
com.mojang.brigadier.arguments.ArgumentType<?> |
getFourthWay() |
org.bukkit.NamespacedKey |
getKey()
Returns the key of this argument type.
|
com.mojang.brigadier.arguments.ArgumentType<?> |
getSecondWay() |
com.mojang.brigadier.arguments.ArgumentType<?> |
getThirdWay() |
static MinecraftArgumentTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MinecraftArgumentTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MinecraftArgumentTypes BLOCK_POS
public static final MinecraftArgumentTypes BLOCK_PREDICATE
public static final MinecraftArgumentTypes BLOCK_STATE
public static final MinecraftArgumentTypes COLOR
public static final MinecraftArgumentTypes COMPONENT
public static final MinecraftArgumentTypes DIMENSION
public static final MinecraftArgumentTypes ENTITY
public static final MinecraftArgumentTypes ENTITY_ANCHOR
public static final MinecraftArgumentTypes ENTITY_SUMMON
public static final MinecraftArgumentTypes FLOAT_RANGE
public static final MinecraftArgumentTypes FUNCTION
public static final MinecraftArgumentTypes GAME_PROFILE
public static final MinecraftArgumentTypes INT_RANGE
public static final MinecraftArgumentTypes ITEM_ENCHANTMENT
public static final MinecraftArgumentTypes ITEM_PREDICATE
public static final MinecraftArgumentTypes ITEM_SLOT
public static final MinecraftArgumentTypes ITEM_STACK
public static final MinecraftArgumentTypes MESSAGE
public static final MinecraftArgumentTypes MOB_EFFECT
public static final MinecraftArgumentTypes NBT_COMPOUND_TAG
public static final MinecraftArgumentTypes NBT_PATH
public static final MinecraftArgumentTypes NBT_TAG
public static final MinecraftArgumentTypes OBJECTIVE
public static final MinecraftArgumentTypes OBJECTIVE_CRITERIA
public static final MinecraftArgumentTypes OPERATION
public static final MinecraftArgumentTypes PARTICLE
public static final MinecraftArgumentTypes RESOURCE_LOCATION
public static final MinecraftArgumentTypes ROTATION
public static final MinecraftArgumentTypes SCORE_HOLDER
public static final MinecraftArgumentTypes SCOREBOARD_SLOT
public static final MinecraftArgumentTypes SWIZZLE
public static final MinecraftArgumentTypes TEAM
public static final MinecraftArgumentTypes TIME
public static final MinecraftArgumentTypes UUID
public static final MinecraftArgumentTypes VEC2
public static final MinecraftArgumentTypes VEC3
public static MinecraftArgumentTypes[] values()
for (MinecraftArgumentTypes c : MinecraftArgumentTypes.values()) System.out.println(c);
public static MinecraftArgumentTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic com.mojang.brigadier.arguments.ArgumentType<?> getArgumentType()
ArgumentType
of the argument, if it is present.public org.bukkit.NamespacedKey getKey()
public com.mojang.brigadier.arguments.ArgumentType<?> getSecondWay()
public com.mojang.brigadier.arguments.ArgumentType<?> getThirdWay()
public com.mojang.brigadier.arguments.ArgumentType<?> getFourthWay()
Copyright © 2020. All rights reserved.