Package net.minecraft.world.level
Enum Class LevelInfo.GameMode
- All Implemented Interfaces:
Serializable,Comparable<LevelInfo.GameMode>,Constable
- Enclosing class:
- LevelInfo
- Mappings:
Namespace Name official adp$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()booleanbooleanvoidsetAbilitites(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 aLadp$a;a:Ladp$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 bLadp$a;b:Ladp$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 cLadp$a;c:Ladp$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 dLadp$a;d:Ladp$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 eLadp$a;e:Ladp$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 fLadp$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 gLadp$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;
-
-
Constructor Details
-
GameMode
- Mappings:
Namespace Name Mixin selector official <init>Ladp$a;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1156$class_1157;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/world/level/LevelInfo$GameMode;<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 aLadp$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 bLadp$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 aLadp$a;a(Lwl;)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 cLadp$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 dLadp$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 eLadp$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 aLadp$a;a(I)Ladp$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;
-
byName
- Mappings:
Namespace Name Mixin selector official aLadp$a;a(Ljava/lang/String;)Ladp$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;
-