Enum ExperienceCommand.Component

java.lang.Object
java.lang.Enum<ExperienceCommand.Component>
net.minecraft.server.command.ExperienceCommand.Component
All Implemented Interfaces:
Serializable, Comparable<ExperienceCommand.Component>, java.lang.constant.Constable
Enclosing class:
ExperienceCommand

static enum ExperienceCommand.Component
extends Enum<ExperienceCommand.Component>
Mappings:
Namespace Name
official xo$a
intermediary net/minecraft/class_3054$class_3055
named net/minecraft/server/command/ExperienceCommand$Component
  • Enum Constant Details

    • POINTS

      public static final ExperienceCommand.Component POINTS
      Mappings:
      Namespace Name Mixin selector
      official a Lxo$a;a:Lxo$a;
      intermediary field_13644 Lnet/minecraft/class_3054$class_3055;field_13644:Lnet/minecraft/class_3054$class_3055;
      named POINTS Lnet/minecraft/server/command/ExperienceCommand$Component;POINTS:Lnet/minecraft/server/command/ExperienceCommand$Component;
    • LEVELS

      public static final ExperienceCommand.Component LEVELS
      Mappings:
      Namespace Name Mixin selector
      official b Lxo$a;b:Lxo$a;
      intermediary field_13641 Lnet/minecraft/class_3054$class_3055;field_13641:Lnet/minecraft/class_3054$class_3055;
      named LEVELS Lnet/minecraft/server/command/ExperienceCommand$Component;LEVELS:Lnet/minecraft/server/command/ExperienceCommand$Component;
  • Field Details

    • adder

      public final BiConsumer<ServerPlayerEntity,​Integer> adder
      Mappings:
      Namespace Name Mixin selector
      official c Lxo$a;c:Ljava/util/function/BiConsumer;
      intermediary field_13639 Lnet/minecraft/class_3054$class_3055;field_13639:Ljava/util/function/BiConsumer;
      named adder Lnet/minecraft/server/command/ExperienceCommand$Component;adder:Ljava/util/function/BiConsumer;
    • setter

      public final BiPredicate<ServerPlayerEntity,​Integer> setter
      Mappings:
      Namespace Name Mixin selector
      official d Lxo$a;d:Ljava/util/function/BiPredicate;
      intermediary field_13642 Lnet/minecraft/class_3054$class_3055;field_13642:Ljava/util/function/BiPredicate;
      named setter Lnet/minecraft/server/command/ExperienceCommand$Component;setter:Ljava/util/function/BiPredicate;
    • name

      public final String name
      Mappings:
      Namespace Name Mixin selector
      official e Lxo$a;e:Ljava/lang/String;
      intermediary field_13643 Lnet/minecraft/class_3054$class_3055;field_13643:Ljava/lang/String;
      named name Lnet/minecraft/server/command/ExperienceCommand$Component;name:Ljava/lang/String;
    • getter

      private final ToIntFunction<ServerPlayerEntity> getter
      Mappings:
      Namespace Name Mixin selector
      official f Lxo$a;f:Ljava/util/function/ToIntFunction;
      intermediary field_13645 Lnet/minecraft/class_3054$class_3055;field_13645:Ljava/util/function/ToIntFunction;
      named getter Lnet/minecraft/server/command/ExperienceCommand$Component;getter: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
      official <init> Lxo$a;<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
      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
  • Method Details

    • values

      public static ExperienceCommand.Component[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ExperienceCommand.Component valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null