Package net.minecraft.world.level
Enum Class LevelInfo.GameMode
- All Implemented Interfaces:
Serializable,Comparable<LevelInfo.GameMode>,Constable
- Enclosing class:
- LevelInfo
- Mappings:
Namespace Name official ahw$aintermediary net/minecraft/class_1156$class_1157named net/minecraft/world/level/LevelInfo$GameMode
-
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelInfo.GameModebyId(int id) static LevelInfo.GameModeintgetId()getName()booleanbooleanstatic LevelInfo.GameModemethod_11494(int int2, LevelInfo.GameMode gameMode) static LevelInfo.GameModemethod_11495(String string, LevelInfo.GameMode gameMode) voidsetAbilitites(PlayerAbilities abilities) booleanstatic LevelInfo.GameModeReturns the enum constant of this class with the specified name.static LevelInfo.GameMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_SET
- Mappings:
Namespace Name Mixin selector official aLahw$a;a:Lahw$a;intermediary field_4572Lnet/minecraft/class_1156$class_1157;field_4572:Lnet/minecraft/class_1156$class_1157;named NOT_SETLnet/minecraft/world/level/LevelInfo$GameMode;NOT_SET:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
SURVIVAL
- Mappings:
Namespace Name Mixin selector official bLahw$a;b:Lahw$a;intermediary field_4573Lnet/minecraft/class_1156$class_1157;field_4573:Lnet/minecraft/class_1156$class_1157;named SURVIVALLnet/minecraft/world/level/LevelInfo$GameMode;SURVIVAL:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
CREATIVE
- Mappings:
Namespace Name Mixin selector official cLahw$a;c:Lahw$a;intermediary field_4574Lnet/minecraft/class_1156$class_1157;field_4574:Lnet/minecraft/class_1156$class_1157;named CREATIVELnet/minecraft/world/level/LevelInfo$GameMode;CREATIVE:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
ADVENTURE
- Mappings:
Namespace Name Mixin selector official dLahw$a;d:Lahw$a;intermediary field_4575Lnet/minecraft/class_1156$class_1157;field_4575:Lnet/minecraft/class_1156$class_1157;named ADVENTURELnet/minecraft/world/level/LevelInfo$GameMode;ADVENTURE:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
SPECTATOR
- Mappings:
Namespace Name Mixin selector official eLahw$a;e:Lahw$a;intermediary field_9216Lnet/minecraft/class_1156$class_1157;field_9216:Lnet/minecraft/class_1156$class_1157;named SPECTATORLnet/minecraft/world/level/LevelInfo$GameMode;SPECTATOR:Lnet/minecraft/world/level/LevelInfo$GameMode;
-
-
Field Details
-
id
int id- Mappings:
Namespace Name Mixin selector official fLahw$a;f:Iintermediary field_4576Lnet/minecraft/class_1156$class_1157;field_4576:Inamed idLnet/minecraft/world/level/LevelInfo$GameMode;id:I
-
name
String name- Mappings:
Namespace Name Mixin selector official gLahw$a;g:Ljava/lang/String;intermediary field_4577Lnet/minecraft/class_1156$class_1157;field_4577:Ljava/lang/String;named nameLnet/minecraft/world/level/LevelInfo$GameMode;name:Ljava/lang/String;
-
field_12437
String field_12437- Mappings:
Namespace Name Mixin selector official hLahw$a;h:Ljava/lang/String;intermediary field_12437Lnet/minecraft/class_1156$class_1157;field_12437:Ljava/lang/String;named field_12437Lnet/minecraft/world/level/LevelInfo$GameMode;field_12437:Ljava/lang/String;
-
-
Constructor Details
-
GameMode
-
-
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 aLahw$a;a()Iintermediary method_3763Lnet/minecraft/class_1156$class_1157;method_3763()Inamed getIdLnet/minecraft/world/level/LevelInfo$GameMode;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official bLahw$a;b()Ljava/lang/String;intermediary method_3767Lnet/minecraft/class_1156$class_1157;method_3767()Ljava/lang/String;named getNameLnet/minecraft/world/level/LevelInfo$GameMode;getName()Ljava/lang/String;
-
setAbilitites
- Mappings:
Namespace Name Mixin selector official aLahw$a;a(Lzh;)Vintermediary method_3766Lnet/minecraft/class_1156$class_1157;method_3766(Lnet/minecraft/class_986;)Vnamed setAbilititesLnet/minecraft/world/level/LevelInfo$GameMode;setAbilitites(Lnet/minecraft/entity/player/PlayerAbilities;)V
-
shouldLimitWorldModification
public boolean shouldLimitWorldModification()- Mappings:
Namespace Name Mixin selector official cLahw$a;c()Zintermediary method_3768Lnet/minecraft/class_1156$class_1157;method_3768()Znamed shouldLimitWorldModificationLnet/minecraft/world/level/LevelInfo$GameMode;shouldLimitWorldModification()Z
-
isCreative
public boolean isCreative()- Mappings:
Namespace Name Mixin selector official dLahw$a;d()Zintermediary method_3769Lnet/minecraft/class_1156$class_1157;method_3769()Znamed isCreativeLnet/minecraft/world/level/LevelInfo$GameMode;isCreative()Z
-
isSurvivalLike
public boolean isSurvivalLike()- Mappings:
Namespace Name Mixin selector official eLahw$a;e()Zintermediary method_3770Lnet/minecraft/class_1156$class_1157;method_3770()Znamed isSurvivalLikeLnet/minecraft/world/level/LevelInfo$GameMode;isSurvivalLike()Z
-
byId
- Mappings:
Namespace Name Mixin selector official aLahw$a;a(I)Lahw$a;intermediary method_3764Lnet/minecraft/class_1156$class_1157;method_3764(I)Lnet/minecraft/class_1156$class_1157;named byIdLnet/minecraft/world/level/LevelInfo$GameMode;byId(I)Lnet/minecraft/world/level/LevelInfo$GameMode;
-
method_11494
- Mappings:
Namespace Name Mixin selector official aLahw$a;a(ILahw$a;)Lahw$a;intermediary method_11494Lnet/minecraft/class_1156$class_1157;method_11494(ILnet/minecraft/class_1156$class_1157;)Lnet/minecraft/class_1156$class_1157;named method_11494Lnet/minecraft/world/level/LevelInfo$GameMode;method_11494(ILnet/minecraft/world/level/LevelInfo$GameMode;)Lnet/minecraft/world/level/LevelInfo$GameMode;
-
byName
- Mappings:
Namespace Name Mixin selector official aLahw$a;a(Ljava/lang/String;)Lahw$a;intermediary method_3765Lnet/minecraft/class_1156$class_1157;method_3765(Ljava/lang/String;)Lnet/minecraft/class_1156$class_1157;named byNameLnet/minecraft/world/level/LevelInfo$GameMode;byName(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;
-
method_11495
- Mappings:
Namespace Name Mixin selector official aLahw$a;a(Ljava/lang/String;Lahw$a;)Lahw$a;intermediary method_11495Lnet/minecraft/class_1156$class_1157;method_11495(Ljava/lang/String;Lnet/minecraft/class_1156$class_1157;)Lnet/minecraft/class_1156$class_1157;named method_11495Lnet/minecraft/world/level/LevelInfo$GameMode;method_11495(Ljava/lang/String;Lnet/minecraft/world/level/LevelInfo$GameMode;)Lnet/minecraft/world/level/LevelInfo$GameMode;
-