Class PlaceBlockEffect

java.lang.Object
com.hypixel.hytale.builtin.triggervolumes.effect.TriggerEffect
com.hypixel.hytale.builtin.triggervolumes.effect.builtin.PlaceBlockEffect

public class PlaceBlockEffect extends TriggerEffect
  • Field Details

  • Constructor Details

    • PlaceBlockEffect

      public PlaceBlockEffect()
  • Method Details

    • execute

      public void execute(@Nonnull TriggerContext context)
      Specified by:
      execute in class TriggerEffect
    • rotateInPlace

      public void rotateInPlace(float yawRadians, @Nonnull org.joml.Vector3d volumeOrigin)
      Description copied from class: TriggerEffect
      Rotates 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 like Vector3d.rotateY(double). World-, entity-, and event-anchored fields must stay unchanged. volumeOrigin is the post-rotation volume origin, needed by block-grid effects to rotate about the target cell center.
      Overrides:
      rotateInPlace in class TriggerEffect