Package net.minecraftforge.common.world
Class StructureSettingsBuilder.StructureSpawnOverrideBuilder
java.lang.Object
net.minecraftforge.common.world.StructureSettingsBuilder.StructureSpawnOverrideBuilder
- Enclosing class:
- StructureSettingsBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<MobSpawnSettings.SpawnerData>private final List<MobSpawnSettings.SpawnerData>
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateStructureSpawnOverrideBuilder(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds a spawn to the overrides.build()copyOf(StructureSpawnOverride override) Gets the type of bounding box for this structures spawn overrides.Unmodifiable view of the possible spawns.voidRemoves a given spawn from the list of overrides.voidsetBoundingBox(StructureSpawnOverride.BoundingBoxType boundingBox) Sets the way the structure checks for spawn overrides.
- 
Field Details- 
boundingBox
- 
spawns
- 
spawnsView
 
- 
- 
Constructor Details- 
StructureSpawnOverrideBuilderprivate StructureSpawnOverrideBuilder(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns) 
 
- 
- 
Method Details- 
copyOfpublic static StructureSettingsBuilder.StructureSpawnOverrideBuilder copyOf(StructureSpawnOverride override) - Parameters:
- override- Existing spawn override data.
- Returns:
- A new builder with a copy of that StructureSpawnOverride's values.
 
- 
getBoundingBoxGets the type of bounding box for this structures spawn overrides.
- 
setBoundingBoxSets the way the structure checks for spawn overrides. Whether it is on a piece by piece basis or within the bounds of the overall structure.
- 
getSpawnsUnmodifiable view of the possible spawns.
- 
addSpawnAdds a spawn to the overrides.
- 
removeSpawnRemoves a given spawn from the list of overrides. UsegetSpawns()to get instances of spawn data to remove.
- 
build- Returns:
- A new StructureSpawnOverride with the finalized values.
 
 
-