Class LevelCreatorImpl
java.lang.Object
dev.wyck.model.level.LevelCreatorImpl
- All Implemented Interfaces:
LevelCreator
@NullMarked
@AsOf("2.4.0")
@Internal
public final class LevelCreatorImpl
extends Object
implements LevelCreator
-
Nested Class Summary
Nested classes/interfaces inherited from interface LevelCreator
LevelCreator.Builder -
Constructor Summary
ConstructorsConstructorDescriptionLevelCreatorImpl(ResourceKey levelKey, Dimension dimension, ChunkGenerator generator, long seed, boolean generateStructures, boolean bonusChest, World.Environment environment, StemPersistence persistence, List<LevelSpawner> spawners, @Nullable String name) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to generate a bonus chest in the world.Converts thisLevelCreatorto aWorld.The dimension of the world.The environment of the world.booleanWhether to generate structures in the world.The chunk generator to use for the world.name()The name of the world.The persistence of the world.The key the world and its level stem are registered under.longseed()The seed to use for the world.spawners()The spawners of the world.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LevelCreator
create, toBuilder
-
Constructor Details
-
LevelCreatorImpl
public LevelCreatorImpl(ResourceKey levelKey, Dimension dimension, ChunkGenerator generator, long seed, boolean generateStructures, boolean bonusChest, World.Environment environment, StemPersistence persistence, List<LevelSpawner> spawners, @Nullable String name)
-
-
Method Details
-
resourceKey
Description copied from interface:LevelCreatorThe key the world and its level stem are registered under.- Specified by:
resourceKeyin interfaceLevelCreator- Returns:
- the key the world and its level stem is registered under
-
dimension
Description copied from interface:LevelCreatorThe dimension of the world.- Specified by:
dimensionin interfaceLevelCreator- Returns:
- the dimension of the world
-
generator
Description copied from interface:LevelCreatorThe chunk generator to use for the world.- Specified by:
generatorin interfaceLevelCreator- Returns:
- the chunk generator to use for the world.
-
seed
public long seed()Description copied from interface:LevelCreatorThe seed to use for the world.- Specified by:
seedin interfaceLevelCreator- Returns:
- the seed to use for the world.
-
generateStructures
public boolean generateStructures()Description copied from interface:LevelCreatorWhether to generate structures in the world.- Specified by:
generateStructuresin interfaceLevelCreator- Returns:
- whether to generate structures in the world.
-
bonusChest
public boolean bonusChest()Description copied from interface:LevelCreatorWhether to generate a bonus chest in the world.- Specified by:
bonusChestin interfaceLevelCreator- Returns:
- whether to generate a bonus chest in the world.
-
environment
Description copied from interface:LevelCreatorThe environment of the world.- Specified by:
environmentin interfaceLevelCreator- Returns:
- the environment of the world.
-
persistence
Description copied from interface:LevelCreatorThe persistence of the world.- Specified by:
persistencein interfaceLevelCreator- Returns:
- the persistence of the world.
-
spawners
Description copied from interface:LevelCreatorThe spawners of the world.- Specified by:
spawnersin interfaceLevelCreator- Returns:
- the spawners of the world.
-
name
Description copied from interface:LevelCreatorThe name of the world.- Specified by:
namein interfaceLevelCreator- Returns:
- the name of the world, as it appears in Bukkit.
-
bukkitWorld
Description copied from interface:LevelCreatorConverts thisLevelCreatorto aWorld.- Specified by:
bukkitWorldin interfaceLevelCreator- Returns:
- a
Worldequivalent to thisLevelCreator
-