Package me.deecaad.core.emitter
Class ParticleEmitter
java.lang.Object
me.deecaad.core.emitter.AbstractEmitter<ParticleEmitterSettings>
me.deecaad.core.emitter.ParticleEmitter
- All Implemented Interfaces:
Emitter,Tickable,TransformLike
Fire-and-forget particle emitter. Each emission point spawns one or more particles at that
location; there's no per-particle tracking (Minecraft particles aren't controllable post-spawn).
Optional transitions on the emitter's normalized age vary particle type, color (used with
DUST), and count over the emitter's lifetime.-
Field Summary
Fields inherited from class me.deecaad.core.emitter.AbstractEmitter
settings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidemit(@NotNull org.bukkit.Location point, @NotNull org.bukkit.util.Vector velocity) Spawns one emitted item.Methods inherited from class me.deecaad.core.emitter.AbstractEmitter
getAge, getSettings, getTickLocation, getTransform, getWorld, hasLiveItems, isFinished, normalizedAge, setWorld, spawnAt, stop, tick, tickAliveMethods 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
-
ParticleEmitter
-
-
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<ParticleEmitterSettings>
-