Interface LevelCreator
- All Known Implementing Classes:
LevelCreatorImpl
A more in depth representation of a
WorldCreator.- Since:
- 2.4.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether to generate a bonus chest in the world.static LevelCreator.Builderbuilder()Creates a new builder.static LevelCreator.Builderbuilder(ResourceKey levelKey) Creates a new builder seeded with the given level key.Converts thisLevelCreatorto aWorld.default Worldcreate()Creates a new bukkit world from this level creator.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.default LevelCreator.BuilderConverts this back into a builder.
-
Method Details
-
resourceKey
The key the world and its level stem are registered under.- Returns:
- the key the world and its level stem is registered under
- Since:
- 2.4.0
-
dimension
-
generator
The chunk generator to use for the world.- Returns:
- the chunk generator to use for the world.
- Since:
- 2.4.0
-
seed
The seed to use for the world.- Returns:
- the seed to use for the world.
- Since:
- 2.4.0
-
generateStructures
Whether to generate structures in the world.- Returns:
- whether to generate structures in the world.
- Since:
- 2.4.0
-
bonusChest
Whether to generate a bonus chest in the world.- Returns:
- whether to generate a bonus chest in the world.
- Since:
- 2.4.0
-
environment
The environment of the world.- Returns:
- the environment of the world.
- Since:
- 2.4.0
-
persistence
The persistence of the world.- Returns:
- the persistence of the world.
- Since:
- 2.4.0
-
spawners
The spawners of the world.- Returns:
- the spawners of the world.
- Since:
- 2.4.0
-
name
-
bukkitWorld
Converts thisLevelCreatorto aWorld.- Returns:
- a
Worldequivalent to thisLevelCreator - Since:
- 2.4.0
-
create
Creates a new bukkit world from this level creator.- Returns:
- a new
Worldfrom thisLevelCreator - Since:
- 2.4.0
-
toBuilder
Converts this back into a builder.- Returns:
- a new builder from this instance
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 2.4.0
-
builder
Creates a new builder seeded with the given level key.- Parameters:
levelKey- the level key to seed the builder with- Returns:
- a new builder seeded with the given level key
- Since:
- 2.4.0
-