Package net.minecraftforge.common.world
Class StructureSettingsBuilder.StructureSpawnOverrideBuilder
java.lang.Object
net.minecraftforge.common.world.StructureSettingsBuilder.StructureSpawnOverrideBuilder
- Enclosing class:
- StructureSettingsBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<MobSpawnSettings.SpawnerData>
private final List<MobSpawnSettings.SpawnerData>
-
Constructor Summary
ModifierConstructorDescriptionprivate
StructureSpawnOverrideBuilder
(StructureSpawnOverride.BoundingBoxType boundingBox, List<MobSpawnSettings.SpawnerData> spawns) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds 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.void
Removes a given spawn from the list of overrides.void
setBoundingBox
(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.
-