Class LevelCreator.Builder
java.lang.Object
dev.wyck.model.level.LevelCreator.Builder
- Enclosing interface:
LevelCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbonusChest(boolean bonusChest) Sets whether to generate a bonus chest in the world.build()create()dimension(ResourceKey resourceKey) Sets the dimension of the world.Sets the dimension of the world.environment(World.Environment environment) Sets the environment of the world.generateStructures(boolean generateStructures) Sets whether to generate structures in the world.generator(ChunkGenerator generator) Sets the chunk generator of the world.levelKey(ResourceKey levelKey) Alias ofresourceKey(ResourceKey)Sets the name of the world.persistence(StemPersistence persistence) Sets the persistence of the world.resourceKey(ResourceKey levelKey) Sets the resource key of the level stem.seed(long seed) Sets the seed of the world.spawner(LevelSpawner spawner) Adds a spawner to the world.spawners(LevelSpawner... spawners) Adds spawners to the world.spawners(List<LevelSpawner> spawners) Sets the spawners of the world.
-
Constructor Details
-
Builder
-
Builder
-
-
Method Details
-
resourceKey
Sets the resource key of the level stem.- Parameters:
levelKey- the resource key of the world- Returns:
- this builder
- Since:
- 2.4.0
-
dimension
Sets the dimension of the world.- Parameters:
dimension- the dimension of the world- Returns:
- this builder
- Since:
- 2.4.0
-
dimension
Sets the dimension of the world.- Parameters:
resourceKey- the resource key of the dimension- Returns:
- this builder
- Since:
- 2.4.0
-
generator
Sets the chunk generator of the world.- Parameters:
generator- the chunk generator of the world- Returns:
- this builder
- Since:
- 2.4.0
-
seed
Sets the seed of the world.- Parameters:
seed- the seed of the world- Returns:
- this builder
- Since:
- 2.4.0
-
generateStructures
Sets whether to generate structures in the world.- Parameters:
generateStructures- whether to generate structures in the world- Returns:
- this builder
- Since:
- 2.4.0
-
bonusChest
Sets whether to generate a bonus chest in the world.- Parameters:
bonusChest- whether to generate a bonus chest in the world- Returns:
- this builder
- Since:
- 2.4.0
-
environment
Sets the environment of the world.- Parameters:
environment- the environment of the world- Returns:
- this builder
- Since:
- 2.4.0
-
persistence
Sets the persistence of the world.- Parameters:
persistence- the persistence of the world- Returns:
- this builder
- Since:
- 2.4.0
-
spawners
Sets the spawners of the world.- Parameters:
spawners- the spawners of the world- Returns:
- this builder
- Since:
- 2.4.0
-
name
Sets the name of the world.- Parameters:
name- the name of the world, or null to use the default name- Returns:
- this builder
- Since:
- 3.0.0
-
levelKey
Alias ofresourceKey(ResourceKey)- Parameters:
levelKey- the resource key of the world- Returns:
- this builder
- Since:
- 2.4.0
-
spawner
Adds a spawner to the world.- Parameters:
spawner- the spawner to add- Returns:
- this builder
- Since:
- 2.4.0
-
spawners
Adds spawners to the world.- Parameters:
spawners- the spawners to add- Returns:
- this builder
- Since:
- 3.0.0
-
build
-
create
-