Enum Class Difficulty

java.lang.Object
java.lang.Enum<Difficulty>
net.minecraft.world.Difficulty
All Implemented Interfaces:
Serializable, Comparable<Difficulty>, Constable, StringIdentifiable

public enum Difficulty extends Enum<Difficulty> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/world/Difficulty
intermediary net/minecraft/class_1267
official bqt
  • Enum Constant Details Link icon

    • PEACEFUL Link icon

      public static final Difficulty PEACEFUL
      Mappings:
      Namespace Name Mixin selector
      named PEACEFUL Lnet/minecraft/world/Difficulty;PEACEFUL:Lnet/minecraft/world/Difficulty;
      intermediary field_5801 Lnet/minecraft/class_1267;field_5801:Lnet/minecraft/class_1267;
      official a Lbqt;a:Lbqt;
    • EASY Link icon

      public static final Difficulty EASY
      Mappings:
      Namespace Name Mixin selector
      named EASY Lnet/minecraft/world/Difficulty;EASY:Lnet/minecraft/world/Difficulty;
      intermediary field_5805 Lnet/minecraft/class_1267;field_5805:Lnet/minecraft/class_1267;
      official b Lbqt;b:Lbqt;
    • NORMAL Link icon

      public static final Difficulty NORMAL
      Mappings:
      Namespace Name Mixin selector
      named NORMAL Lnet/minecraft/world/Difficulty;NORMAL:Lnet/minecraft/world/Difficulty;
      intermediary field_5802 Lnet/minecraft/class_1267;field_5802:Lnet/minecraft/class_1267;
      official c Lbqt;c:Lbqt;
    • HARD Link icon

      public static final Difficulty HARD
      Mappings:
      Namespace Name Mixin selector
      named HARD Lnet/minecraft/world/Difficulty;HARD:Lnet/minecraft/world/Difficulty;
      intermediary field_5807 Lnet/minecraft/class_1267;field_5807:Lnet/minecraft/class_1267;
      official d Lbqt;d:Lbqt;
  • Field Details Link icon

    • CODEC Link icon

      public static final StringIdentifiable.EnumCodec<Difficulty> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/Difficulty;CODEC:Lnet/minecraft/util/StringIdentifiable$EnumCodec;
      intermediary field_41668 Lnet/minecraft/class_1267;field_41668:Lnet/minecraft/class_3542$class_7292;
      official e Lbqt;e:Lazu$a;
    • BY_ID Link icon

      private static final IntFunction<Difficulty> BY_ID
      Mappings:
      Namespace Name Mixin selector
      named BY_ID Lnet/minecraft/world/Difficulty;BY_ID:Ljava/util/function/IntFunction;
      intermediary field_5800 Lnet/minecraft/class_1267;field_5800:Ljava/util/function/IntFunction;
      official f Lbqt;f:Ljava/util/function/IntFunction;
    • id Link icon

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/world/Difficulty;id:I
      intermediary field_5803 Lnet/minecraft/class_1267;field_5803:I
      official g Lbqt;g:I
    • name Link icon

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/Difficulty;name:Ljava/lang/String;
      intermediary field_5806 Lnet/minecraft/class_1267;field_5806:Ljava/lang/String;
      official h Lbqt;h:Ljava/lang/String;
  • Constructor Details Link icon

    • Difficulty Link icon

      private Difficulty(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/Difficulty;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1267;<init>(Ljava/lang/String;IILjava/lang/String;)V
      official <init> Lbqt;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • Method Details Link icon

    • values Link icon

      public static Difficulty[] 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 Link icon

      public static Difficulty valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId Link icon

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/world/Difficulty;getId()I
      intermediary method_5461 Lnet/minecraft/class_1267;method_5461()I
      official a Lbqt;a()I
    • getTranslatableName Link icon

      public Text getTranslatableName()
      Mappings:
      Namespace Name Mixin selector
      named getTranslatableName Lnet/minecraft/world/Difficulty;getTranslatableName()Lnet/minecraft/text/Text;
      intermediary method_5463 Lnet/minecraft/class_1267;method_5463()Lnet/minecraft/class_2561;
      official b Lbqt;b()Lxp;
    • getInfo Link icon

      public Text getInfo()
      Mappings:
      Namespace Name Mixin selector
      named getInfo Lnet/minecraft/world/Difficulty;getInfo()Lnet/minecraft/text/Text;
      intermediary method_48556 Lnet/minecraft/class_1267;method_48556()Lnet/minecraft/class_2561;
      official d Lbqt;d()Lxp;
    • byId Link icon

      public static Difficulty byId(int id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lnet/minecraft/world/Difficulty;byId(I)Lnet/minecraft/world/Difficulty;
      intermediary method_5462 Lnet/minecraft/class_1267;method_5462(I)Lnet/minecraft/class_1267;
      official a Lbqt;a(I)Lbqt;
    • byName Link icon

      @Nullable public static @Nullable Difficulty byName(String name)
      Mappings:
      Namespace Name Mixin selector
      named byName Lnet/minecraft/world/Difficulty;byName(Ljava/lang/String;)Lnet/minecraft/world/Difficulty;
      intermediary method_16691 Lnet/minecraft/class_1267;method_16691(Ljava/lang/String;)Lnet/minecraft/class_1267;
      official a Lbqt;a(Ljava/lang/String;)Lbqt;
    • getName Link icon

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/world/Difficulty;getName()Ljava/lang/String;
      intermediary method_5460 Lnet/minecraft/class_1267;method_5460()Ljava/lang/String;
      official e Lbqt;e()Ljava/lang/String;
    • asString Link icon

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;