Interface StructureSpawnOverride
- All Superinterfaces:
Wrapper
Replaces a biome's spawners for one
MobCategory inside a structure's bounds. A structure
carries at most one override per category.- Since:
- 3.4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe volume aStructureSpawnOverrideapplies within. -
Method Summary
Modifier and TypeMethodDescriptionThe volume the override applies within.static StructureSpawnOverrideReads a Minecraft structure spawn override.static StructureSpawnOverrideof(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedList<SpawnerData> spawns) Creates a new spawn override.spawns()The spawners that replace the biome's own for this category.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
boundingBox
The volume the override applies within.- Returns:
- the bounding box the override applies within
- Since:
- 3.4.0
-
spawns
The spawners that replace the biome's own for this category.- Returns:
- the replacement spawners
- Since:
- 3.4.0
-
of
@AsOf("3.4.0") static StructureSpawnOverride of(StructureSpawnOverride.BoundingBoxType boundingBox, WeightedList<SpawnerData> spawns) Creates a new spawn override.- Parameters:
boundingBox- the volume the override applies withinspawns- the replacement spawners- Returns:
- a new spawn override
- Since:
- 3.4.0
-
decode
Reads a Minecraft structure spawn override.- Parameters:
minecraftSpawnOverride- the spawn override to read- Returns:
- the decoded spawn override
- Since:
- 3.4.0
-