Contents
Class PlaceBlockEffect
java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.effect.TriggerEffect
com.hypixel.hytale.builtin.triggervolumes.effect.builtin.PlaceBlockEffect
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class TriggerEffect
BASE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(TriggerContext context) voidrotateInPlace(float yawRadians, org.joml.Vector3d volumeOrigin) Rotates volume-anchored offsets and facings when a prefab paste or world-gen placement applies a yaw to the owning volume.Methods inherited from class TriggerEffect
deepCopy, deepCopyList, getDelay, getEntry, getEventType, getInterval, onEntityExit, setDelay, setEntry, setEventType, setInterval
-
Field Details
-
CODEC
-
-
Constructor Details
-
PlaceBlockEffect
public PlaceBlockEffect()
-
-
Method Details
-
execute
- Specified by:
executein classTriggerEffect
-
rotateInPlace
public void rotateInPlace(float yawRadians, @Nonnull org.joml.Vector3d volumeOrigin) Description copied from class:TriggerEffectRotates volume-anchored offsets and facings when a prefab paste or world-gen placement applies a yaw to the owning volume. The yaw follows the entity transform convention: world offsets move likeVector3d.rotateY(double). World-, entity-, and event-anchored fields must stay unchanged.volumeOriginis the post-rotation volume origin, needed by block-grid effects to rotate about the target cell center.- Overrides:
rotateInPlacein classTriggerEffect
-