Package net.minecraft.world
Class WorldSettings
java.lang.Object
net.minecraft.world.WorldSettings
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final DatapackCodec
private final Difficulty
private final GameRules
private final GameType
private final boolean
private final String
-
Constructor Summary
ConstructorDescriptionWorldSettings
(String p_i231620_1_, GameType p_i231620_2_, boolean p_i231620_3_, Difficulty p_i231620_4_, boolean p_i231620_5_, GameRules p_i231620_6_, DatapackCodec p_i231620_7_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
copy()
gameType()
boolean
hardcore()
static WorldSettings
parse
(com.mojang.serialization.Dynamic<?> p_234951_0_, DatapackCodec p_234951_1_) withDataPackConfig
(DatapackCodec p_234949_1_) withDifficulty
(Difficulty p_234948_1_) withGameType
(GameType p_234950_1_)
-
Field Details
-
levelName
-
gameType
-
hardcore
private final boolean hardcore -
difficulty
-
allowCommands
private final boolean allowCommands -
gameRules
-
dataPackConfig
-
-
Constructor Details
-
WorldSettings
public WorldSettings(String p_i231620_1_, GameType p_i231620_2_, boolean p_i231620_3_, Difficulty p_i231620_4_, boolean p_i231620_5_, GameRules p_i231620_6_, DatapackCodec p_i231620_7_)
-
-
Method Details
-
parse
public static WorldSettings parse(com.mojang.serialization.Dynamic<?> p_234951_0_, DatapackCodec p_234951_1_) -
levelName
-
gameType
-
hardcore
public boolean hardcore() -
difficulty
-
allowCommands
public boolean allowCommands() -
gameRules
-
getDataPackConfig
-
withGameType
-
withDifficulty
-
withDataPackConfig
-
copy
-