Package net.minecraft.world.level
Class LevelSettings
java.lang.Object
net.minecraft.world.level.LevelSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final WorldDataConfiguration
private final Difficulty
private final GameRules
private final GameType
private final boolean
private final String
private final com.mojang.serialization.Lifecycle
-
Constructor Summary
ConstructorDescriptionLevelSettings
(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_) LevelSettings
(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_, com.mojang.serialization.Lifecycle lifecycle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
copy()
gameType()
com.mojang.serialization.Lifecycle
boolean
hardcore()
static LevelSettings
parse
(com.mojang.serialization.Dynamic<?> p_46925_, WorldDataConfiguration p_251697_) withDataConfiguration
(WorldDataConfiguration p_250867_) withDifficulty
(Difficulty p_46919_) withGameType
(GameType p_46923_) withLifecycle
(com.mojang.serialization.Lifecycle lifecycle)
-
Field Details
-
levelName
-
gameType
-
hardcore
private final boolean hardcore -
difficulty
-
allowCommands
private final boolean allowCommands -
gameRules
-
dataConfiguration
-
lifecycle
private final com.mojang.serialization.Lifecycle lifecycle
-
-
Constructor Details
-
LevelSettings
public LevelSettings(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_) -
LevelSettings
public LevelSettings(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_, com.mojang.serialization.Lifecycle lifecycle)
-
-
Method Details
-
parse
public static LevelSettings parse(com.mojang.serialization.Dynamic<?> p_46925_, WorldDataConfiguration p_251697_) -
levelName
-
gameType
-
hardcore
public boolean hardcore() -
difficulty
-
allowCommands
public boolean allowCommands() -
gameRules
-
getDataConfiguration
-
withGameType
-
withDifficulty
-
withDataConfiguration
-
copy
-
withLifecycle
-
getLifecycle
public com.mojang.serialization.Lifecycle getLifecycle()
-