Interface ParticleRenderer

All Known Implementing Classes:
Renderers.DustRenderer, Renderers.ItemDisplayRenderer, Renderers.Standard

public interface ParticleRenderer
Interface responsible for the actual display of calculated particle points in the world.

Implementations can use vanilla particle packets, custom entities, or third-party plugin APIs to display the effect.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(org.bukkit.Location center, List<org.bukkit.util.Vector> points, List<org.bukkit.entity.Player> viewers)
    Executes the visual rendering of the particle frame.
    default void
    start(org.bukkit.Location origin)
    Called when the effect is initialized.
    default void
    Called when the effect stops.
  • Method Details

    • start

      default void start(org.bukkit.Location origin)
      Called when the effect is initialized. Useful for pre-calculating data or setting up visual states.
      Parameters:
      origin - The starting world Location.
    • render

      void render(org.bukkit.Location center, List<org.bukkit.util.Vector> points, List<org.bukkit.entity.Player> viewers)
      Executes the visual rendering of the particle frame.
      Parameters:
      center - The central Location to offset the points from.
      points - The list of processed Vector coordinates.
      viewers - The list of players who should receive the display, or null for global visibility.
    • stop

      default void stop()
      Called when the effect stops. Useful for removing persistent entities or cleaning up temporary visual resources.