Package net.minecraft.world.level
Enum LevelInfo.GameMode
- All Implemented Interfaces:
Serializable,Comparable<LevelInfo.GameMode>,java.lang.constant.Constable
- Enclosing class:
- LevelInfo
public static enum LevelInfo.GameMode extends Enum<LevelInfo.GameMode>
- Mappings:
Namespace Name official adp$aintermediary net/minecraft/class_102$class_103named 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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description static LevelInfo.GameModebyId(int id)static LevelInfo.GameModebyName(String name)intgetId()StringgetName()booleanisCreative()booleanisSurvivalLike()voidsetAbilitites(PlayerAbilities abilities)booleanshouldLimitWorldModification()static LevelInfo.GameModevalueOf(String name)Returns the enum constant of this type with the specified name.static LevelInfo.GameMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_SET
- Mappings:
Namespace Name Mixin selector official aLadp$a;a:Ladp$a;intermediary field_303Lnet/minecraft/class_102$class_103;field_303:Lnet/minecraft/class_102$class_103;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_304Lnet/minecraft/class_102$class_103;field_304:Lnet/minecraft/class_102$class_103;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_305Lnet/minecraft/class_102$class_103;field_305:Lnet/minecraft/class_102$class_103;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_306Lnet/minecraft/class_102$class_103;field_306:Lnet/minecraft/class_102$class_103;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_307Lnet/minecraft/class_102$class_103;field_307:Lnet/minecraft/class_102$class_103;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_308Lnet/minecraft/class_102$class_103;field_308: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_309Lnet/minecraft/class_102$class_103;field_309: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_102$class_103;<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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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_469Lnet/minecraft/class_102$class_103;method_469()Inamed getIdLnet/minecraft/world/level/LevelInfo$GameMode;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official bLadp$a;b()Ljava/lang/String;intermediary method_473Lnet/minecraft/class_102$class_103;method_473()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_472Lnet/minecraft/class_102$class_103;method_472(Lnet/minecraft/class_1961;)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_474Lnet/minecraft/class_102$class_103;method_474()Znamed shouldLimitWorldModificationLnet/minecraft/world/level/LevelInfo$GameMode;shouldLimitWorldModification()Z
-
isCreative
public boolean isCreative()- Mappings:
Namespace Name Mixin selector official dLadp$a;d()Zintermediary method_475Lnet/minecraft/class_102$class_103;method_475()Znamed isCreativeLnet/minecraft/world/level/LevelInfo$GameMode;isCreative()Z
-
isSurvivalLike
public boolean isSurvivalLike()- Mappings:
Namespace Name Mixin selector official eLadp$a;e()Zintermediary method_476Lnet/minecraft/class_102$class_103;method_476()Znamed isSurvivalLikeLnet/minecraft/world/level/LevelInfo$GameMode;isSurvivalLike()Z
-
byId
- Mappings:
Namespace Name Mixin selector official aLadp$a;a(I)Ladp$a;intermediary method_470Lnet/minecraft/class_102$class_103;method_470(I)Lnet/minecraft/class_102$class_103;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_471Lnet/minecraft/class_102$class_103;method_471(Ljava/lang/String;)Lnet/minecraft/class_102$class_103;named byNameLnet/minecraft/world/level/LevelInfo$GameMode;byName(Ljava/lang/String;)Lnet/minecraft/world/level/LevelInfo$GameMode;
-