Interface EmittedDisplay


public sealed interface EmittedDisplay
Read-only view of one live emission, passed to user-supplied kill/onKilled hooks on a DisplayEntityEmitter.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    age()
     
    @NotNull org.joml.Vector3fc
    The scale vector from the most recently pushed transformation, or identity if nothing has been pushed yet.
    int
     
    @NotNull org.joml.Vector3fc
    Read-only view of the accumulated translation offset (world-space when the entity was spawned with yaw=pitch=0, which the emitter guarantees).
    @NotNull org.bukkit.util.Vector
    The entity's current per-tick velocity.
    @NotNull org.bukkit.Location
    The entity's spawn location plus the accumulated translation offset.
  • Method Details

    • age

      int age()
    • lifetime

      int lifetime()
    • worldLocation

      @NotNull @NotNull org.bukkit.Location worldLocation()
      The entity's spawn location plus the accumulated translation offset. Allocates a fresh Location.
    • translationOffset

      @NotNull @NotNull org.joml.Vector3fc translationOffset()
      Read-only view of the accumulated translation offset (world-space when the entity was spawned with yaw=pitch=0, which the emitter guarantees).
    • velocity

      @NotNull @NotNull org.bukkit.util.Vector velocity()
      The entity's current per-tick velocity. Defensive clone.
    • currentScale

      @NotNull @NotNull org.joml.Vector3fc currentScale()
      The scale vector from the most recently pushed transformation, or identity if nothing has been pushed yet.