Package net.minecraftforge.common.world
Class StructureSettingsBuilder.StructureSpawnOverrideBuilder
java.lang.Object
net.minecraftforge.common.world.StructureSettingsBuilder.StructureSpawnOverrideBuilder
- Enclosing class:
 - StructureSettingsBuilder
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<MobSpawnSettings.SpawnerData>private final List<MobSpawnSettings.SpawnerData> - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStructureSpawnOverrideBuilder(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns)  - 
Method Summary
Modifier 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
- 
StructureSpawnOverrideBuilder
private StructureSpawnOverrideBuilder(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns)  
 - 
 - 
Method Details
- 
copyOf
public static StructureSettingsBuilder.StructureSpawnOverrideBuilder copyOf(StructureSpawnOverride override) - Parameters:
 override- Existing spawn override data.- Returns:
 - A new builder with a copy of that StructureSpawnOverride's values.
 
 - 
getBoundingBox
Gets the type of bounding box for this structures spawn overrides. - 
setBoundingBox
Sets 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. - 
getSpawns
Unmodifiable view of the possible spawns. - 
addSpawn
Adds a spawn to the overrides. - 
removeSpawn
Removes 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.
 
 
 -