Class WorldOptions
java.lang.Object
net.minecraft.world.level.levelgen.WorldOptions
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<WorldOptions>
static final WorldOptions
private final boolean
private final boolean
private final long
-
Constructor Summary
ModifierConstructorDescriptionWorldOptions
(long p_251567_, boolean p_250743_, boolean p_250454_) private
WorldOptions
(long p_249191_, boolean p_250927_, boolean p_249013_, Optional<String> p_250735_) -
Method Summary
Modifier and TypeMethodDescriptionstatic WorldOptions
boolean
boolean
boolean
static OptionalLong
static long
long
seed()
withBonusChest
(boolean p_251744_) withSeed
(OptionalLong p_261572_) withStructures
(boolean p_251426_)
-
Field Details
-
CODEC
-
DEMO_OPTIONS
-
seed
private final long seed -
generateStructures
private final boolean generateStructures -
generateBonusChest
private final boolean generateBonusChest -
legacyCustomOptions
-
-
Constructor Details
-
WorldOptions
public WorldOptions(long p_251567_, boolean p_250743_, boolean p_250454_) -
WorldOptions
-
-
Method Details
-
defaultWithRandomSeed
-
seed
public long seed() -
generateStructures
public boolean generateStructures() -
generateBonusChest
public boolean generateBonusChest() -
isOldCustomizedWorld
public boolean isOldCustomizedWorld() -
withBonusChest
-
withStructures
-
withSeed
-
parseSeed
-
randomSeed
public static long randomSeed()
-