net.minecraft.world.level

public final class LevelSettings

dgn
net.minecraft.world.level.LevelSettings
net.minecraft.class_1940
net.minecraft.world.level.LevelInfo
net.minecraft.world.level.WorldSettings

Field summary

Modifier and TypeField
private final String
a
levelName
field_24105
name
private final GameType
b
gameType
field_9257
gameMode
private final boolean
c
hardcore
field_9262
hardcore
private final Difficulty
d
difficulty
field_24106
difficulty
private final boolean
e
allowCommands
field_9261
allowCommands
private final GameRules
f
gameRules
field_24107
gameRules
private final WorldDataConfiguration
g
dataConfiguration
field_25403
dataConfiguration

Constructor summary

ModifierConstructor
public (String name, GameType gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, WorldDataConfiguration dataConfiguration)

Method summary

Modifier and TypeMethod
public static LevelSettings
a(com.mojang.serialization.Dynamic<?> arg0, dhg arg1)
parse(com.mojang.serialization.Dynamic<?> arg0, WorldDataConfiguration arg1)
method_28383(com.mojang.serialization.Dynamic<?> arg0, class_7712 arg1)
fromDynamic(com.mojang.serialization.Dynamic<?> dynamic, DataConfiguration dataConfiguration)
public String
a()
levelName()
method_27339()
getLevelName()
public GameType
b()
gameType()
method_8574()
getGameMode()
public boolean
c()
hardcore()
method_8583()
isHardcore()
public Difficulty
d()
difficulty()
method_27340()
getDifficulty()
public boolean
e()
allowCommands()
method_8582()
areCommandsAllowed()
public GameRules
f()
gameRules()
method_27341()
getGameRules()
public WorldDataConfiguration
g()
getDataConfiguration()
method_29558()
getDataConfiguration()
public LevelSettings
a(dgg arg0)
withGameType(GameType arg0)
method_28382(class_1934 arg0)
withGameMode(GameMode mode)
public LevelSettings
a(bsi arg0)
withDifficulty(Difficulty arg0)
method_28381(class_1267 arg0)
withDifficulty(Difficulty difficulty)
public LevelSettings
a(dhg arg0)
withDataConfiguration(WorldDataConfiguration arg0)
method_29557(class_7712 arg0)
withDataConfiguration(DataConfiguration dataConfiguration)
public LevelSettings
h()
copy()
method_28385()
withCopiedGameRules()