AbstractStaticplaceThe structure to place
The dimension to place the structure
The location to place the structure
What rotation the structure should face
An object of options to overwrite placement or build time
void
StaticplacePlaces a structure at an entity’s location with optional build animation and placement SFX.
The structure to place (must be valid).
The entity whose position and yaw determine placement and rotation.
Optionaloptions: StructureUtilOptionsvoid
StaticgetConverts a player-facing yaw (in degrees) to a StructureRotation for placement.
Player yaw in degrees (preferably snapped to N/E/S/W).
The structure rotation to align the structure’s front with the given yaw.
StaticgetComputes a placement offset for a structure based on its size and the chosen StructureRotation.
The structure reference (uses structure.size).
The rotation that will be applied when placing the structure.
The Y offset to place the structure at (default 0).
A Vec3 offset to add to the placement origin.
Places a structure at a location with optional build animation & SFX.