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 TypeMethodDescriptionvoidrender(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 voidstart(org.bukkit.Location origin) Called when the effect is initialized.default voidstop()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 worldLocation.
-
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 centralLocationto offset the points from.points- The list of processedVectorcoordinates.viewers- The list of players who should receive the display, ornullfor global visibility.
-
stop
default void stop()Called when the effect stops. Useful for removing persistent entities or cleaning up temporary visual resources.
-