Package net.minecraftforge.common.world
Class StructureSettingsBuilder
java.lang.Object
net.minecraftforge.common.world.StructureSettingsBuilder
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<MobCategory,StructureSettingsBuilder.StructureSpawnOverrideBuilder> private GenerationStep.Decorationprivate TerrainAdjustment
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateStructureSettingsBuilder(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) 
- 
Method SummaryModifier and TypeMethodDescriptionbuild()static StructureSettingsBuildercopyOf(Structure.StructureSettings settings) Gets the world generation decoration step the structure spawns during.getOrAddSpawnOverrides(MobCategory category) Gets or creates a mutable builder for the spawn overrides of a given mob category.getSpawnOverrides(MobCategory category) Gets a mutable builder for the spawn overrides of a given mob category ornullif no overrides are defined for that category.Gets the way the structure adapts to the terrain during generation.voidremoveSpawnOverrides(MobCategory category) Removes the spawn overrides for the given mob category.voidvoidSets the world generation decoration step the structure spawns during.voidsetTerrainAdaptation(TerrainAdjustment terrainAdaptation) Sets the way the structure adapts to the terrain during generation.
- 
Field Details- 
biomes
- 
spawnOverridesprivate final Map<MobCategory,StructureSettingsBuilder.StructureSpawnOverrideBuilder> spawnOverrides
- 
step
- 
terrainAdaptation
 
- 
- 
Constructor Details- 
StructureSettingsBuilderprivate StructureSettingsBuilder(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) 
 
- 
- 
Method Details- 
copyOf- Parameters:
- settings- Existing StructureSettings.
- Returns:
- A new builder with a copy of that StructureSettings's values.
 
- 
build- Returns:
- A new StructureSettings with the finalized values.
 
- 
getBiomes
- 
setBiomes
- 
getSpawnOverrides@Nullable public @Nullable StructureSettingsBuilder.StructureSpawnOverrideBuilder getSpawnOverrides(MobCategory category) Gets a mutable builder for the spawn overrides of a given mob category ornullif no overrides are defined for that category.- Parameters:
- category- Mob category
 
- 
getOrAddSpawnOverridespublic StructureSettingsBuilder.StructureSpawnOverrideBuilder getOrAddSpawnOverrides(MobCategory category) Gets or creates a mutable builder for the spawn overrides of a given mob category. If the override needed to be created it will default to piece bounding.- Parameters:
- category- Mob category
 
- 
removeSpawnOverridesRemoves the spawn overrides for the given mob category.- Parameters:
- category- Mob category
 
- 
getDecorationStepGets the world generation decoration step the structure spawns during.
- 
setDecorationStepSets the world generation decoration step the structure spawns during.
- 
getTerrainAdaptationGets the way the structure adapts to the terrain during generation.
- 
setTerrainAdaptationSets the way the structure adapts to the terrain during generation.- Parameters:
- terrainAdaptation- New terrain adjustment
 
 
-