Package net.minecraft.world
Enum Class Difficulty
- All Implemented Interfaces:
Serializable,Comparable<Difficulty>,Constable
- Mappings:
Namespace Name official vtintermediary 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 aLvt;a:Lvt;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 bLvt;b:Lvt;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 cLvt;c:Lvt;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 dLvt;d:Lvt;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 eLvt;e:[Lvt;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 fLvt;f:Iintermediary field_9072Lnet/minecraft/class_2151;field_9072:Inamed idLnet/minecraft/world/Difficulty;id:I
-
name
- Mappings:
Namespace Name Mixin selector official gLvt;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>Lvt;<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 aLvt;a()Iintermediary method_8350Lnet/minecraft/class_2151;method_8350()Inamed getIdLnet/minecraft/world/Difficulty;getId()I
-
byOrdinal
- Mappings:
Namespace Name Mixin selector official aLvt;a(I)Lvt;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 bLvt;b()Ljava/lang/String;intermediary method_8352Lnet/minecraft/class_2151;method_8352()Ljava/lang/String;named getNameLnet/minecraft/world/Difficulty;getName()Ljava/lang/String;
-