Package net.minecraft.world.level
Class LevelInfo
java.lang.Object
net.minecraft.world.level.LevelInfo
- Mappings:
Namespace Name official cpz
intermediary net/minecraft/class_1940
named net/minecraft/world/level/LevelInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final DataConfiguration
private final Difficulty
private final GameMode
private final GameRules
private final boolean
private final String
-
Constructor Summary
ConstructorDescriptionLevelInfo
(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static LevelInfo
fromDynamic
(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration) boolean
withDataConfiguration
(DataConfiguration dataConfiguration) withDifficulty
(Difficulty difficulty) withGameMode
(GameMode mode)
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a:Ljava/lang/String;
intermediary field_24105
Lnet/minecraft/class_1940;field_24105:Ljava/lang/String;
named name
Lnet/minecraft/world/level/LevelInfo;name:Ljava/lang/String;
-
gameMode
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b:Lcps;
intermediary field_9257
Lnet/minecraft/class_1940;field_9257:Lnet/minecraft/class_1934;
named gameMode
Lnet/minecraft/world/level/LevelInfo;gameMode:Lnet/minecraft/world/GameMode;
-
hardcore
private final boolean hardcore- Mappings:
Namespace Name Mixin selector official c
Lcpz;c:Z
intermediary field_9262
Lnet/minecraft/class_1940;field_9262:Z
named hardcore
Lnet/minecraft/world/level/LevelInfo;hardcore:Z
-
difficulty
- Mappings:
Namespace Name Mixin selector official d
Lcpz;d:Lbgv;
intermediary field_24106
Lnet/minecraft/class_1940;field_24106:Lnet/minecraft/class_1267;
named difficulty
Lnet/minecraft/world/level/LevelInfo;difficulty:Lnet/minecraft/world/Difficulty;
-
allowCommands
private final boolean allowCommands- Mappings:
Namespace Name Mixin selector official e
Lcpz;e:Z
intermediary field_9261
Lnet/minecraft/class_1940;field_9261:Z
named allowCommands
Lnet/minecraft/world/level/LevelInfo;allowCommands:Z
-
gameRules
- Mappings:
Namespace Name Mixin selector official f
Lcpz;f:Lcpr;
intermediary field_24107
Lnet/minecraft/class_1940;field_24107:Lnet/minecraft/class_1928;
named gameRules
Lnet/minecraft/world/level/LevelInfo;gameRules:Lnet/minecraft/world/GameRules;
-
dataConfiguration
- Mappings:
Namespace Name Mixin selector official g
Lcpz;g:Lcqo;
intermediary field_25403
Lnet/minecraft/class_1940;field_25403:Lnet/minecraft/class_7712;
named dataConfiguration
Lnet/minecraft/world/level/LevelInfo;dataConfiguration:Lnet/minecraft/resource/DataConfiguration;
-
-
Constructor Details
-
LevelInfo
public LevelInfo(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration) - Mappings:
Namespace Name Mixin selector official <init>
Lcpz;<init>(Ljava/lang/String;Lcps;ZLbgv;ZLcpr;Lcqo;)V
intermediary <init>
Lnet/minecraft/class_1940;<init>(Ljava/lang/String;Lnet/minecraft/class_1934;ZLnet/minecraft/class_1267;ZLnet/minecraft/class_1928;Lnet/minecraft/class_7712;)V
named <init>
Lnet/minecraft/world/level/LevelInfo;<init>(Ljava/lang/String;Lnet/minecraft/world/GameMode;ZLnet/minecraft/world/Difficulty;ZLnet/minecraft/world/GameRules;Lnet/minecraft/resource/DataConfiguration;)V
-
-
Method Details
-
fromDynamic
public static LevelInfo fromDynamic(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration) - Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lcom/mojang/serialization/Dynamic;Lcqo;)Lcpz;
intermediary method_28383
Lnet/minecraft/class_1940;method_28383(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/class_7712;)Lnet/minecraft/class_1940;
named fromDynamic
Lnet/minecraft/world/level/LevelInfo;fromDynamic(Lcom/mojang/serialization/Dynamic;Lnet/minecraft/resource/DataConfiguration;)Lnet/minecraft/world/level/LevelInfo;
-
getLevelName
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a()Ljava/lang/String;
intermediary method_27339
Lnet/minecraft/class_1940;method_27339()Ljava/lang/String;
named getLevelName
Lnet/minecraft/world/level/LevelInfo;getLevelName()Ljava/lang/String;
-
getGameMode
- Mappings:
Namespace Name Mixin selector official b
Lcpz;b()Lcps;
intermediary method_8574
Lnet/minecraft/class_1940;method_8574()Lnet/minecraft/class_1934;
named getGameMode
Lnet/minecraft/world/level/LevelInfo;getGameMode()Lnet/minecraft/world/GameMode;
-
isHardcore
public boolean isHardcore()- Mappings:
Namespace Name Mixin selector official c
Lcpz;c()Z
intermediary method_8583
Lnet/minecraft/class_1940;method_8583()Z
named isHardcore
Lnet/minecraft/world/level/LevelInfo;isHardcore()Z
-
getDifficulty
- Mappings:
Namespace Name Mixin selector official d
Lcpz;d()Lbgv;
intermediary method_27340
Lnet/minecraft/class_1940;method_27340()Lnet/minecraft/class_1267;
named getDifficulty
Lnet/minecraft/world/level/LevelInfo;getDifficulty()Lnet/minecraft/world/Difficulty;
-
areCommandsAllowed
public boolean areCommandsAllowed()- Mappings:
Namespace Name Mixin selector official e
Lcpz;e()Z
intermediary method_8582
Lnet/minecraft/class_1940;method_8582()Z
named areCommandsAllowed
Lnet/minecraft/world/level/LevelInfo;areCommandsAllowed()Z
-
getGameRules
- Mappings:
Namespace Name Mixin selector official f
Lcpz;f()Lcpr;
intermediary method_27341
Lnet/minecraft/class_1940;method_27341()Lnet/minecraft/class_1928;
named getGameRules
Lnet/minecraft/world/level/LevelInfo;getGameRules()Lnet/minecraft/world/GameRules;
-
getDataConfiguration
- Mappings:
Namespace Name Mixin selector official g
Lcpz;g()Lcqo;
intermediary method_29558
Lnet/minecraft/class_1940;method_29558()Lnet/minecraft/class_7712;
named getDataConfiguration
Lnet/minecraft/world/level/LevelInfo;getDataConfiguration()Lnet/minecraft/resource/DataConfiguration;
-
withGameMode
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lcps;)Lcpz;
intermediary method_28382
Lnet/minecraft/class_1940;method_28382(Lnet/minecraft/class_1934;)Lnet/minecraft/class_1940;
named withGameMode
Lnet/minecraft/world/level/LevelInfo;withGameMode(Lnet/minecraft/world/GameMode;)Lnet/minecraft/world/level/LevelInfo;
-
withDifficulty
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lbgv;)Lcpz;
intermediary method_28381
Lnet/minecraft/class_1940;method_28381(Lnet/minecraft/class_1267;)Lnet/minecraft/class_1940;
named withDifficulty
Lnet/minecraft/world/level/LevelInfo;withDifficulty(Lnet/minecraft/world/Difficulty;)Lnet/minecraft/world/level/LevelInfo;
-
withDataConfiguration
- Mappings:
Namespace Name Mixin selector official a
Lcpz;a(Lcqo;)Lcpz;
intermediary method_29557
Lnet/minecraft/class_1940;method_29557(Lnet/minecraft/class_7712;)Lnet/minecraft/class_1940;
named withDataConfiguration
Lnet/minecraft/world/level/LevelInfo;withDataConfiguration(Lnet/minecraft/resource/DataConfiguration;)Lnet/minecraft/world/level/LevelInfo;
-
withCopiedGameRules
- Mappings:
Namespace Name Mixin selector official h
Lcpz;h()Lcpz;
intermediary method_28385
Lnet/minecraft/class_1940;method_28385()Lnet/minecraft/class_1940;
named withCopiedGameRules
Lnet/minecraft/world/level/LevelInfo;withCopiedGameRules()Lnet/minecraft/world/level/LevelInfo;
-