Package net.minecraft.world
Class WorldSettings
- java.lang.Object
-
- net.minecraft.world.WorldSettings
-
public final class WorldSettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowCommands
private DatapackCodec
dataPackConfig
private Difficulty
difficulty
private GameRules
gameRules
private GameType
gameType
private boolean
hardcore
private java.lang.String
levelName
-
Constructor Summary
Constructors Constructor Description WorldSettings(java.lang.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowCommands()
WorldSettings
copy()
Difficulty
difficulty()
GameRules
gameRules()
GameType
gameType()
DatapackCodec
getDataPackConfig()
boolean
hardcore()
java.lang.String
levelName()
static WorldSettings
parse(com.mojang.serialization.Dynamic<?> p_234951_0_, DatapackCodec p_234951_1_)
WorldSettings
withDataPackConfig(DatapackCodec p_234949_1_)
WorldSettings
withDifficulty(Difficulty p_234948_1_)
WorldSettings
withGameType(GameType p_234950_1_)
-
-
-
Field Detail
-
levelName
private final java.lang.String levelName
-
gameType
private final GameType gameType
-
hardcore
private final boolean hardcore
-
difficulty
private final Difficulty difficulty
-
allowCommands
private final boolean allowCommands
-
gameRules
private final GameRules gameRules
-
dataPackConfig
private final DatapackCodec dataPackConfig
-
-
Constructor Detail
-
WorldSettings
public WorldSettings(java.lang.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 Detail
-
parse
public static WorldSettings parse(com.mojang.serialization.Dynamic<?> p_234951_0_, DatapackCodec p_234951_1_)
-
levelName
public java.lang.String levelName()
-
gameType
public GameType gameType()
-
hardcore
public boolean hardcore()
-
difficulty
public Difficulty difficulty()
-
allowCommands
public boolean allowCommands()
-
gameRules
public GameRules gameRules()
-
getDataPackConfig
public DatapackCodec getDataPackConfig()
-
withGameType
public WorldSettings withGameType(GameType p_234950_1_)
-
withDifficulty
public WorldSettings withDifficulty(Difficulty p_234948_1_)
-
withDataPackConfig
public WorldSettings withDataPackConfig(DatapackCodec p_234949_1_)
-
copy
public WorldSettings copy()
-
-