static enum AdvancementCommand.ActionType extends java.lang.Enum<AdvancementCommand.ActionType>
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
baseTranslationKey |
(package private) java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
(package private) static AdvancementCommand.ActionType |
byName(java.lang.String nameIn) |
protected abstract boolean |
perform(EntityPlayerMP p_193537_1_,
Advancement p_193537_2_) |
int |
perform(EntityPlayerMP p_193532_1_,
java.lang.Iterable<Advancement> p_193532_2_) |
protected abstract boolean |
performCriterion(EntityPlayerMP p_193535_1_,
Advancement p_193535_2_,
java.lang.String p_193535_3_) |
static AdvancementCommand.ActionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AdvancementCommand.ActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
(package private) CommandException |
wrongUsage() |
public static final AdvancementCommand.ActionType GRANT
public static final AdvancementCommand.ActionType REVOKE
final java.lang.String name
final java.lang.String baseTranslationKey
public static AdvancementCommand.ActionType[] values()
for (AdvancementCommand.ActionType c : AdvancementCommand.ActionType.values()) System.out.println(c);
public static AdvancementCommand.ActionType 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 null@Nullable static AdvancementCommand.ActionType byName(java.lang.String nameIn)
CommandException wrongUsage()
public int perform(EntityPlayerMP p_193532_1_, java.lang.Iterable<Advancement> p_193532_2_)
protected abstract boolean perform(EntityPlayerMP p_193537_1_, Advancement p_193537_2_)
protected abstract boolean performCriterion(EntityPlayerMP p_193535_1_, Advancement p_193535_2_, java.lang.String p_193535_3_)