Package net.minecraft.world
Enum Class Difficulty
- All Implemented Interfaces:
Serializable,Comparable<Difficulty>,Constable
- Mappings:
Namespace Name official ojintermediary net/minecraft/class_2151named net/minecraft/world/Difficulty
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Difficulty[]private final intprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DifficultybyOrdinal(int ordinal) intgetId()getName()static DifficultyReturns the enum constant of this class with the specified name.static Difficulty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PEACEFUL
- Mappings:
Namespace Name Mixin selector official aLoj;a:Loj;intermediary field_9067Lnet/minecraft/class_2151;field_9067:Lnet/minecraft/class_2151;named PEACEFULLnet/minecraft/world/Difficulty;PEACEFUL:Lnet/minecraft/world/Difficulty;
-
EASY
- Mappings:
Namespace Name Mixin selector official bLoj;b:Loj;intermediary field_9068Lnet/minecraft/class_2151;field_9068:Lnet/minecraft/class_2151;named EASYLnet/minecraft/world/Difficulty;EASY:Lnet/minecraft/world/Difficulty;
-
NORMAL
- Mappings:
Namespace Name Mixin selector official cLoj;c:Loj;intermediary field_9069Lnet/minecraft/class_2151;field_9069:Lnet/minecraft/class_2151;named NORMALLnet/minecraft/world/Difficulty;NORMAL:Lnet/minecraft/world/Difficulty;
-
HARD
- Mappings:
Namespace Name Mixin selector official dLoj;d:Loj;intermediary field_9070Lnet/minecraft/class_2151;field_9070:Lnet/minecraft/class_2151;named HARDLnet/minecraft/world/Difficulty;HARD:Lnet/minecraft/world/Difficulty;
-
-
Field Details
-
DIFFICULTIES
- Mappings:
Namespace Name Mixin selector official eLoj;e:[Loj;intermediary field_9071Lnet/minecraft/class_2151;field_9071:[Lnet/minecraft/class_2151;named DIFFICULTIESLnet/minecraft/world/Difficulty;DIFFICULTIES:[Lnet/minecraft/world/Difficulty;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official fLoj;f:Iintermediary field_9072Lnet/minecraft/class_2151;field_9072:Inamed idLnet/minecraft/world/Difficulty;id:I
-
name
- Mappings:
Namespace Name Mixin selector official gLoj;g:Ljava/lang/String;intermediary field_9073Lnet/minecraft/class_2151;field_9073:Ljava/lang/String;named nameLnet/minecraft/world/Difficulty;name:Ljava/lang/String;
-
-
Constructor Details
-
Difficulty
- Mappings:
Namespace Name Mixin selector official <init>Loj;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2151;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/world/Difficulty;<init>(Ljava/lang/String;IILjava/lang/String;)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
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLoj;a()Iintermediary method_8350Lnet/minecraft/class_2151;method_8350()Inamed getIdLnet/minecraft/world/Difficulty;getId()I
-
byOrdinal
- Mappings:
Namespace Name Mixin selector official aLoj;a(I)Loj;intermediary method_8351Lnet/minecraft/class_2151;method_8351(I)Lnet/minecraft/class_2151;named byOrdinalLnet/minecraft/world/Difficulty;byOrdinal(I)Lnet/minecraft/world/Difficulty;
-
getName
- Mappings:
Namespace Name Mixin selector official bLoj;b()Ljava/lang/String;intermediary method_8352Lnet/minecraft/class_2151;method_8352()Ljava/lang/String;named getNameLnet/minecraft/world/Difficulty;getName()Ljava/lang/String;
-