Package net.minecraft.world.level
Class LevelSettings
java.lang.Object
net.minecraft.world.level.LevelSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private DataPackConfig
private Difficulty
private GameRules
private GameType
private boolean
private String
-
Constructor Summary
ConstructorDescriptionLevelSettings(String p_46910_, GameType p_46911_, boolean p_46912_, Difficulty p_46913_, boolean p_46914_, GameRules p_46915_, DataPackConfig p_46916_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
copy()
gameType()
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_)
-
Field Details
-
levelName
-
gameType
-
hardcore
private final boolean hardcore -
difficulty
-
allowCommands
private final boolean allowCommands -
gameRules
-
dataPackConfig
-
-
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_)
-
-
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
-