Package net.minecraft.world.level
Class LevelSettings
java.lang.Object
net.minecraft.world.level.LevelSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final DataPackConfig
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_46910_, GameType p_46911_, boolean p_46912_, Difficulty p_46913_, boolean p_46914_, GameRules p_46915_, DataPackConfig p_46916_) LevelSettings
(String p_46910_, GameType p_46911_, boolean p_46912_, Difficulty p_46913_, boolean p_46914_, GameRules p_46915_, DataPackConfig p_46916_, 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_, DataPackConfig p_46926_) withDataPackConfig
(DataPackConfig p_46921_) 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
-
dataPackConfig
-
lifecycle
private final com.mojang.serialization.Lifecycle lifecycle
-
-
Constructor Details
-
LevelSettings
public LevelSettings(String p_46910_, GameType p_46911_, boolean p_46912_, Difficulty p_46913_, boolean p_46914_, GameRules p_46915_, DataPackConfig p_46916_) -
LevelSettings
public LevelSettings(String p_46910_, GameType p_46911_, boolean p_46912_, Difficulty p_46913_, boolean p_46914_, GameRules p_46915_, DataPackConfig p_46916_, com.mojang.serialization.Lifecycle lifecycle)
-
-
Method Details
-
parse
public static LevelSettings parse(com.mojang.serialization.Dynamic<?> p_46925_, DataPackConfig p_46926_) -
levelName
-
gameType
-
hardcore
public boolean hardcore() -
difficulty
-
allowCommands
public boolean allowCommands() -
gameRules
-
getDataPackConfig
-
withGameType
-
withDifficulty
-
withDataPackConfig
-
copy
-
withLifecycle
-
getLifecycle
public com.mojang.serialization.Lifecycle getLifecycle()
-