Package net.minecraft.world.level
Class LevelInfo
java.lang.Object
net.minecraft.world.level.LevelInfo
public final class LevelInfo extends Object
-
Field Summary
Fields Modifier and Type Field Description private Difficultydifficultyprivate DataPackSettingsfield_25403private GameModegameModeprivate GameRulesgameRulesprivate booleanhardcoreprivate Stringnameprivate booleanstructures -
Constructor Summary
Constructors Constructor Description LevelInfo(String name, GameMode gameMode, boolean bool, Difficulty difficulty, boolean bool2, GameRules gameRules, DataPackSettings dataPackSettings) -
Method Summary
Modifier and Type Method Description DifficultygetDifficulty()GameModegetGameMode()GameRulesgetGameRules()StringgetLevelName()booleanhasStructures()booleanisHardcore()LevelInfomethod_28381(Difficulty difficulty)LevelInfomethod_28382(GameMode gameMode)static LevelInfomethod_28383(com.mojang.serialization.Dynamic<?> dynamic, DataPackSettings dataPackSettings)LevelInfomethod_28385()LevelInfomethod_29557(DataPackSettings dataPackSettings)DataPackSettingsmethod_29558()
-
Field Details
-
name
-
gameMode
-
structures
private final boolean structures -
difficulty
-
hardcore
private final boolean hardcore -
gameRules
-
field_25403
-
-
Constructor Details
-
LevelInfo
public LevelInfo(String name, GameMode gameMode, boolean bool, Difficulty difficulty, boolean bool2, GameRules gameRules, DataPackSettings dataPackSettings)
-
-
Method Details
-
method_28383
public static LevelInfo method_28383(com.mojang.serialization.Dynamic<?> dynamic, DataPackSettings dataPackSettings) -
getLevelName
-
getGameMode
-
hasStructures
public boolean hasStructures() -
getDifficulty
-
isHardcore
public boolean isHardcore() -
getGameRules
-
method_29558
-
method_28382
-
method_28381
-
method_29557
-
method_28385
-