Enum Class Difficulty

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

public enum Difficulty extends Enum<Difficulty>
Mappings:
Namespace Name
official awe
intermediary net/minecraft/class_1267
named net/minecraft/world/Difficulty
  • Enum Constant Details

    • PEACEFUL

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

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

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

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

    • BY_NAME

      private static final Difficulty[] BY_NAME
      Mappings:
      Namespace Name Mixin selector
      official e Lawe;e:[Lawe;
      intermediary field_5800 Lnet/minecraft/class_1267;field_5800:[Lnet/minecraft/class_1267;
      named BY_NAME Lnet/minecraft/world/Difficulty;BY_NAME:[Lnet/minecraft/world/Difficulty;
    • id

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

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

    • Difficulty

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

    • values

      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

      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

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

      public Text getTranslatableName()
      Mappings:
      Namespace Name Mixin selector
      official b Lawe;b()Lqk;
      intermediary method_5463 Lnet/minecraft/class_1267;method_5463()Lnet/minecraft/class_2561;
      named getTranslatableName Lnet/minecraft/world/Difficulty;getTranslatableName()Lnet/minecraft/text/Text;
    • byOrdinal

      public static Difficulty byOrdinal(int ordinal)
      Mappings:
      Namespace Name Mixin selector
      official a Lawe;a(I)Lawe;
      intermediary method_5462 Lnet/minecraft/class_1267;method_5462(I)Lnet/minecraft/class_1267;
      named byOrdinal Lnet/minecraft/world/Difficulty;byOrdinal(I)Lnet/minecraft/world/Difficulty;
    • byName

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

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official c Lawe;c()Ljava/lang/String;
      intermediary method_5460 Lnet/minecraft/class_1267;method_5460()Ljava/lang/String;
      named getName Lnet/minecraft/world/Difficulty;getName()Ljava/lang/String;