static enum AdvancementCommand.Operation extends Enum<AdvancementCommand.Operation>
Modifier and Type | Field and Description |
---|---|
private String |
commandPrefix |
Modifier and Type | Method and Description |
---|---|
protected String |
getCommandPrefix() |
int |
processAll(ServerPlayerEntity player,
Iterable<Advancement> advancements) |
protected abstract boolean |
processEach(ServerPlayerEntity player,
Advancement advancement) |
protected abstract boolean |
processEachCriterion(ServerPlayerEntity player,
Advancement advancement,
String criterion) |
static AdvancementCommand.Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdvancementCommand.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvancementCommand.Operation GRANT
public static final AdvancementCommand.Operation REVOKE
private final String commandPrefix
public static AdvancementCommand.Operation[] values()
for (AdvancementCommand.Operation c : AdvancementCommand.Operation.values()) System.out.println(c);
public static AdvancementCommand.Operation 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 int processAll(ServerPlayerEntity player, Iterable<Advancement> advancements)
protected abstract boolean processEach(ServerPlayerEntity player, Advancement advancement)
protected abstract boolean processEachCriterion(ServerPlayerEntity player, Advancement advancement, String criterion)
protected String getCommandPrefix()