Package net.minecraft.command.impl
Enum Class AdvancementCommand.Action
- All Implemented Interfaces:
Serializable,Comparable<AdvancementCommand.Action>,Constable
- Enclosing class:
- AdvancementCommand
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetKey()intperform(ServerPlayerEntity p_198180_1_, Iterable<Advancement> p_198180_2_) protected abstract booleanperform(ServerPlayerEntity p_198179_1_, Advancement p_198179_2_) protected abstract booleanperformCriterion(ServerPlayerEntity p_198182_1_, Advancement p_198182_2_, String p_198182_3_) static AdvancementCommand.ActionReturns the enum constant of this class with the specified name.static AdvancementCommand.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GRANT
-
REVOKE
-
-
Field Details
-
key
-
-
Constructor Details
-
Action
-
-
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
-
perform
-
perform
-
performCriterion
protected abstract boolean performCriterion(ServerPlayerEntity p_198182_1_, Advancement p_198182_2_, String p_198182_3_) -
getKey
-