Package net.minecraft.world.level
Class LevelSettings
java.lang.Object
net.minecraft.world.level.LevelSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate DataPackConfigprivate Difficultyprivate GameRulesprivate GameTypeprivate booleanprivate String -
Constructor Summary
ConstructorsConstructorDescriptionLevelSettings(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 TypeMethodDescriptionbooleancopy()gameType()booleanhardcore()static LevelSettingsparse(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
-