ParticleSpriteRenderer
Draws one emitter's particles for Java players as packet-only item displays. The display's billboard orientation is applied before its transformation, so movement goes through the entity position (viewers glide over UPDATE_INTERVAL_TICKS) while spin and size use the transformation. Updates are sent at most every interval and only when something changed.
Constructors
Link copied to clipboard
public void ParticleSpriteRenderer(ParticleSprites sprites, ParticleEffectBlueprint effect, ParticleSpriteRenderer.SpriteFactory factory, int maxPerViewer)
Types
Functions
Link copied to clipboard
public void render(ParticleEmitter emitter, Vector3d emitterPosition, Quaterniond emitterRotation, World world, Collection<UUID> viewers, AbstractPacketBundle bundle, int tick)
Link copied to clipboard
Forgets every viewer's live-particle count, for tests and plugin shutdown.