Class Renderers.Standard

java.lang.Object
com.github.darksoulq.abyssallib.world.particle.impl.Renderers.Standard
All Implemented Interfaces:
ParticleRenderer
Enclosing class:
Renderers

public static class Renderers.Standard extends Object implements ParticleRenderer
A standard renderer that uses Bukkit's Particle API.

Supports both static points and velocity-based points via MotionVector.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Standard(org.bukkit.Particle particle, int count, double speed, Object data)
    Constructs a new Standard renderer.
  • 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)
    Spawns particles for each calculated vector.

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ParticleRenderer

    start, stop
  • Constructor Details

    • Standard

      public Standard(org.bukkit.Particle particle, int count, double speed, Object data)
      Constructs a new Standard renderer.
      Parameters:
      particle - The Particle type.
      count - Particle count per point.
      speed - Particle speed.
      data - Extra particle data.
  • Method Details

    • render

      public void render(org.bukkit.Location center, List<org.bukkit.util.Vector> points, List<org.bukkit.entity.Player> viewers)
      Spawns particles for each calculated vector.
      Specified by:
      render in interface ParticleRenderer
      Parameters:
      center - The central origin location.
      points - The list of vectors to render.
      viewers - The list of players who can see the particles.