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.default DimensionDeprecated.The environment of the world.booleanWhether to generate structures in the world.default ChunkGeneratorDeprecated.UselevelStem()instead.The level stem of the world.name()The name of the world.Deprecated, for removal: This API element is subject to removal in a future version.UselevelStem()andRegisterable.register()instead.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.type()Used only to control client-sided behavior.
-
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
-
levelStem
-
dimension
Deprecated.UselevelStem()instead.The dimension of the world.- Returns:
- the dimension of the world
- Since:
- 2.4.0
-
generator
Deprecated.UselevelStem()instead.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
@AsOf("2.4.0") @Deprecated(forRemoval=true, since="3.3.0") @ScheduledForRemoval(inVersion="3.4.0") StemPersistence persistence()Deprecated, for removal: This API element is subject to removal in a future version.UselevelStem()andRegisterable.register()instead.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
-
type
-
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
-
levelStem()instead.