Interface StructurePlacement
- All Superinterfaces:
Wrapper
- All Known Subinterfaces:
ConcentricRingsPlacement, RandomSpreadPlacement
How a
StructureSet spreads its structures across a dimension.- Since:
- 3.4.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordKeeps a placement away from chunks where another structure set already placed. -
Method Summary
Modifier and TypeMethodDescriptionstatic StructurePlacementReads a Minecraft structure placement.The zone around another structure set this placement avoids.floatThe fraction of eligible chunks that actually receive the structure, from 0 to 1.The reducer applied tofrequency().The offset applied to a located position, used by/locate structure.intsalt()The salt mixed into the placement's random seed.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
locateOffset
The offset applied to a located position, used by/locate structure.- Returns:
- the locate offset
- Since:
- 3.4.0
-
frequencyReduction
The reducer applied tofrequency().- Returns:
- the frequency reduction method
- Since:
- 3.4.0
-
frequency
The fraction of eligible chunks that actually receive the structure, from 0 to 1.- Returns:
- the placement frequency
- Since:
- 3.4.0
-
salt
The salt mixed into the placement's random seed. Two sets sharing a salt place in the same chunks.- Returns:
- the placement salt
- Since:
- 3.4.0
-
exclusionZone
The zone around another structure set this placement avoids.- Returns:
- the exclusion zone, if present
- Since:
- 3.4.0
-
decode
Reads a Minecraft structure placement.- Parameters:
minecraftPlacement- the structure placement to read- Returns:
- the decoded structure placement
- Since:
- 3.4.0
-