Class StructureSettings.Builder
java.lang.Object
dev.wyck.worldgen.structure.StructureSettings.Builder
- Enclosing interface:
StructureSettings
Builder for
StructureSettings.- Since:
- 3.4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the biomes the structure may generate in.build()Builds the structure settings.spawnOverride(MobCategory category, StructureSpawnOverride override) Adds a spawn override for one mob category.spawnOverrides(Map<MobCategory, StructureSpawnOverride> spawnOverrides) Sets the spawn overrides.step(Decoration step) Sets the generation step the structure is placed in.terrainAdaptation(TerrainAdaptation terrainAdaptation) Sets how the structure reshapes the terrain it lands on.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
biomes
Sets the biomes the structure may generate in.- Parameters:
biomes- the biomes the structure may generate in- Returns:
- this builder
- Since:
- 3.4.0
-
spawnOverrides
@AsOf("3.4.0") public StructureSettings.Builder spawnOverrides(Map<MobCategory, StructureSpawnOverride> spawnOverrides) Sets the spawn overrides.- Parameters:
spawnOverrides- the spawners the structure replaces inside its bounds- Returns:
- this builder
- Since:
- 3.4.0
-
step
Sets the generation step the structure is placed in.- Parameters:
step- the generation step- Returns:
- this builder
- Since:
- 3.4.0
-
terrainAdaptation
@AsOf("3.4.0") public StructureSettings.Builder terrainAdaptation(TerrainAdaptation terrainAdaptation) Sets how the structure reshapes the terrain it lands on.- Parameters:
terrainAdaptation- the terrain adaptation- Returns:
- this builder
- Since:
- 3.4.0
-
spawnOverride
@AsOf("3.4.0") public StructureSettings.Builder spawnOverride(MobCategory category, StructureSpawnOverride override) Adds a spawn override for one mob category.- Parameters:
category- the category to overrideoverride- the replacement spawners- Returns:
- this builder
- Since:
- 3.4.0
-
build
Builds the structure settings.- Returns:
- the structure settings
- Since:
- 3.4.0
-