Package net.minecraft.server.command
Enum Class ExperienceCommand.Component
java.lang.Object
java.lang.Enum<ExperienceCommand.Component>
net.minecraft.server.command.ExperienceCommand.Component
- All Implemented Interfaces:
Serializable
,Comparable<ExperienceCommand.Component>
,Constable
- Enclosing class:
ExperienceCommand
- Mappings:
Namespace Name named net/minecraft/server/command/ExperienceCommand$Component
intermediary net/minecraft/class_3054$class_3055
official aod$a
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal BiConsumer
<ServerPlayerEntity, Integer> (package private) final ToIntFunction
<ServerPlayerEntity> final String
final BiPredicate
<ServerPlayerEntity, Integer> -
Constructor Summary
ModifierConstructorDescriptionprivate
Component
(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperienceCommand.Component
Returns the enum constant of this class with the specified name.static ExperienceCommand.Component[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POINTS
- Mappings:
Namespace Name Mixin selector named POINTS
Lnet/minecraft/server/command/ExperienceCommand$Component;POINTS:Lnet/minecraft/server/command/ExperienceCommand$Component;
intermediary field_13644
Lnet/minecraft/class_3054$class_3055;field_13644:Lnet/minecraft/class_3054$class_3055;
official a
Laod$a;a:Laod$a;
-
LEVELS
- Mappings:
Namespace Name Mixin selector named LEVELS
Lnet/minecraft/server/command/ExperienceCommand$Component;LEVELS:Lnet/minecraft/server/command/ExperienceCommand$Component;
intermediary field_13641
Lnet/minecraft/class_3054$class_3055;field_13641:Lnet/minecraft/class_3054$class_3055;
official b
Laod$a;b:Laod$a;
-
-
Field Details
-
adder
- Mappings:
Namespace Name Mixin selector named adder
Lnet/minecraft/server/command/ExperienceCommand$Component;adder:Ljava/util/function/BiConsumer;
intermediary field_13639
Lnet/minecraft/class_3054$class_3055;field_13639:Ljava/util/function/BiConsumer;
official c
Laod$a;c:Ljava/util/function/BiConsumer;
-
setter
- Mappings:
Namespace Name Mixin selector named setter
Lnet/minecraft/server/command/ExperienceCommand$Component;setter:Ljava/util/function/BiPredicate;
intermediary field_13642
Lnet/minecraft/class_3054$class_3055;field_13642:Ljava/util/function/BiPredicate;
official d
Laod$a;d:Ljava/util/function/BiPredicate;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/server/command/ExperienceCommand$Component;name:Ljava/lang/String;
intermediary field_13643
Lnet/minecraft/class_3054$class_3055;field_13643:Ljava/lang/String;
official e
Laod$a;e:Ljava/lang/String;
-
getter
- Mappings:
Namespace Name Mixin selector named getter
Lnet/minecraft/server/command/ExperienceCommand$Component;getter:Ljava/util/function/ToIntFunction;
intermediary field_13645
Lnet/minecraft/class_3054$class_3055;field_13645:Ljava/util/function/ToIntFunction;
official f
Laod$a;f:Ljava/util/function/ToIntFunction;
-
-
Constructor Details
-
Component
private Component(String name, BiConsumer<ServerPlayerEntity, Integer> adder, BiPredicate<ServerPlayerEntity, Integer> setter, ToIntFunction<ServerPlayerEntity> getter) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/server/command/ExperienceCommand$Component;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiConsumer;Ljava/util/function/BiPredicate;Ljava/util/function/ToIntFunction;)V
intermediary <init>
Lnet/minecraft/class_3054$class_3055;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiConsumer;Ljava/util/function/BiPredicate;Ljava/util/function/ToIntFunction;)V
official <init>
Laod$a;<init>(Ljava/lang/String;ILjava/lang/String;Ljava/util/function/BiConsumer;Ljava/util/function/BiPredicate;Ljava/util/function/ToIntFunction;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-