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