static enum AdvancementCommand.Action extends java.lang.Enum<AdvancementCommand.Action>
| Modifier and Type | Field and Description | 
|---|---|
private java.lang.String | 
prefix  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract boolean | 
applyToAdvancement(ServerPlayerEntity player,
                  Advancement advancementIn)  | 
int | 
applyToAdvancements(ServerPlayerEntity player,
                   java.lang.Iterable<Advancement> advancements)  | 
protected abstract boolean | 
applyToCriterion(ServerPlayerEntity player,
                Advancement advancementIn,
                java.lang.String criterionName)  | 
protected java.lang.String | 
getPrefix()  | 
static AdvancementCommand.Action | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static AdvancementCommand.Action[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final AdvancementCommand.Action GRANT
public static final AdvancementCommand.Action REVOKE
public static AdvancementCommand.Action[] values()
for (AdvancementCommand.Action c : AdvancementCommand.Action.values()) System.out.println(c);
public static AdvancementCommand.Action 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 int applyToAdvancements(ServerPlayerEntity player, java.lang.Iterable<Advancement> advancements)
protected abstract boolean applyToAdvancement(ServerPlayerEntity player, Advancement advancementIn)
protected abstract boolean applyToCriterion(ServerPlayerEntity player, Advancement advancementIn, java.lang.String criterionName)
protected java.lang.String getPrefix()