static enum ExperienceCommand.Type extends java.lang.Enum<ExperienceCommand.Type>
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
java.util.function.BiConsumer<ServerPlayerEntity,java.lang.Integer> |
xpAdder |
private java.util.function.ToIntFunction<ServerPlayerEntity> |
xpGetter |
java.util.function.BiPredicate<ServerPlayerEntity,java.lang.Integer> |
xpSetter |
| Modifier and Type | Method and Description |
|---|---|
static ExperienceCommand.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExperienceCommand.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExperienceCommand.Type POINTS
public static final ExperienceCommand.Type LEVELS
public final java.util.function.BiConsumer<ServerPlayerEntity,java.lang.Integer> xpAdder
public final java.util.function.BiPredicate<ServerPlayerEntity,java.lang.Integer> xpSetter
public final java.lang.String name
private final java.util.function.ToIntFunction<ServerPlayerEntity> xpGetter
public static ExperienceCommand.Type[] values()
for (ExperienceCommand.Type c : ExperienceCommand.Type.values()) System.out.println(c);
public static ExperienceCommand.Type 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