Package me.deecaad.core.emitter
Class DisplayEntityEmitter
java.lang.Object
me.deecaad.core.emitter.AbstractEmitter<DisplayEntityEmitterSettings>
me.deecaad.core.emitter.DisplayEntityEmitter
- All Implemented Interfaces:
Emitter,Tickable,TransformLike
Emits persistent
FakeDisplayEntity packets. Each emitted entity carries its own age,
velocity, and a precomputed playback schedule for any per-entity transitions. Entities are
detached from the emitter's transform once spawned so they follow their own world path.
When an emitted entity has motion (initial velocity, velocity transition, acceleration, or spin),
the motion is baked into the Transformation each tick and pushed with
interpolation_duration = 1. The entity itself stays anchored at its spawn location, and
the client smooths motion via the built-in display interpolation rather than per-tick teleport
packets.
-
Field Summary
Fields inherited from class me.deecaad.core.emitter.AbstractEmitter
settings -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.deecaad.core.emitter.AbstractEmitter
getAge, getSettings, getTickLocation, getTransform, getWorld, isFinished, normalizedAge, setWorld, spawnAt, stop, tickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.utils.TransformLike
applyTransform, update
-
Constructor Details
-
DisplayEntityEmitter
-
-
Method Details
-
emit
protected void emit(@NotNull @NotNull org.bukkit.Location point, @NotNull @NotNull org.bukkit.util.Vector velocity) Description copied from class:AbstractEmitterSpawns one emitted item. Called once per item selected by the emission scheduler.- Specified by:
emitin classAbstractEmitter<DisplayEntityEmitterSettings>
-
tickAlive
protected void tickAlive()Description copied from class:AbstractEmitterAdvances any persistent emitted items (display entities, etc.). No-op by default for fire-and-forget emitters like particles.- Overrides:
tickAlivein classAbstractEmitter<DisplayEntityEmitterSettings>
-
hasLiveItems
protected boolean hasLiveItems()- Overrides:
hasLiveItemsin classAbstractEmitter<DisplayEntityEmitterSettings>- Returns:
trueif any emitted item is still alive and must keep the emitter ticking past its duration.
-
remove
public void remove()Description copied from interface:TickableCleanup hook. Called by theTickManagerwhenTickable.tick()returnstrue, or duringTickManager.shutdown(). Default is a no-op.
-