Class Renderers.DustRenderer

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

public static class Renderers.DustRenderer extends Object implements ParticleRenderer
A specialized renderer for Particle.DUST.

Automatically extracts color information from Pixel vectors to create high-fidelity colored effects.

  • Constructor Summary

    Constructors
    Constructor
    Description
    DustRenderer(float size)
    Constructs a new DustRenderer.
  • 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)
    Renders colored dust particles.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.github.darksoulq.abyssallib.world.particle.ParticleRenderer

    start, stop
  • Constructor Details

    • DustRenderer

      public DustRenderer(float size)
      Constructs a new DustRenderer.
      Parameters:
      size - The dust size (0.1 to 4.0).
  • Method Details

    • render

      public void render(org.bukkit.Location center, List<org.bukkit.util.Vector> points, List<org.bukkit.entity.Player> viewers)
      Renders colored dust particles.
      Specified by:
      render in interface ParticleRenderer
      Parameters:
      center - The origin location.
      points - The list of vectors, ideally instances of Pixel.
      viewers - The list of recipients.