Class ParticleDustColored

All Implemented Interfaces:
IParticle, SizeableParticle
Direct Known Subclasses:
ParticleDustMulticolored

public class ParticleDustColored extends ColorableParticle implements SizeableParticle
  • Field Details

    • pureColor

      protected boolean pureColor
    • size

      protected double size
  • Constructor Details

    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color, double size, double offsetX, double offsetY, double offsetZ, int count)
    • ParticleDustColored

      public ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ, int count)
    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color, double offsetX, double offsetY, double offsetZ, int count)
    • ParticleDustColored

      public ParticleDustColored(double offsetX, double offsetY, double offsetZ, int count)
    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color, double offsetX, double offsetY, double offsetZ)
    • ParticleDustColored

      public ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ)
    • ParticleDustColored

      public ParticleDustColored(double offsetX, double offsetY, double offsetZ)
    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color, double size, int count)
    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color, double size)
    • ParticleDustColored

      public ParticleDustColored(@Nullable Color color)
    • ParticleDustColored

      public ParticleDustColored(int count)
    • ParticleDustColored

      public ParticleDustColored(double size)
    • ParticleDustColored

      public ParticleDustColored()
  • Method Details

    • inherit

      public ParticleDustColored inherit(Particle particle)
      Specified by:
      inherit in interface IParticle
      Specified by:
      inherit in interface SizeableParticle
      Overrides:
      inherit in class ColorableParticle
      Parameters:
      particle - particle for this object to copy data from
      Returns:
      this object
    • clone

      public ParticleDustColored clone()
      Specified by:
      clone in interface IParticle
      Specified by:
      clone in interface SizeableParticle
      Specified by:
      clone in class ColorableParticle
    • display

      protected void display(org.bukkit.Location location, List<org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer> players)
      Overrides:
      display in class Particle
    • getXYZ

      protected org.bukkit.util.Vector getXYZ(org.bukkit.Location location)
      Description copied from class: Particle
      Meant to be overridden by child classes to modify the X/Y/Z values of the packet sent to the player.
      Overrides:
      getXYZ in class ColorableParticle
      Parameters:
      location - the location passed into the display method
      Returns:
      the xyzHelper with the modified X/Y/Z values
    • getOffsets

      protected org.bukkit.util.Vector getOffsets(org.bukkit.Location location)
      Description copied from class: Particle
      Meant to be overridden by child classes to modify the offset values of the packet sent to the player.
      Overrides:
      getOffsets in class ColorableParticle
      Parameters:
      location - the location passed into the display method
      Returns:
      the offsetHelper with the modified offset values
    • getPacketSpeed

      protected float getPacketSpeed()
      Description copied from class: Particle
      Meant to be overridden by child classes to modify the speed value of the packet sent to the player.
      Overrides:
      getPacketSpeed in class ColorableParticle
      Returns:
      the modified speed value
    • getPacketCount

      protected int getPacketCount()
      Description copied from class: Particle
      Meant to be overridden by child classes to modify the count value of the packet sent to the player.
      Overrides:
      getPacketCount in class ColorableParticle
      Returns:
      the modified count value
    • setBrightness

      @Deprecated public void setBrightness(int brightness)
      Deprecated.
      Unused in this class.
      Overrides:
      setBrightness in class ColorableParticle
      Parameters:
      brightness - how saturated the color should be, from 0-100
    • setSize

      public void setSize(double size)
      only changes between 0 and 4.
      Specified by:
      setSize in interface SizeableParticle
    • setPureColor

      public ParticleDustColored setPureColor(boolean pureColor)
      if this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust. aka no purple or brown or other colors like that
      Parameters:
      pureColor - whether the color should be pure
      Returns:
      this object
    • getBrightness

      @Deprecated public int getBrightness()
      Deprecated.
      Unused in this class.
      Overrides:
      getBrightness in class ColorableParticle
    • getSize

      public double getSize()
      only changes between 0 and 4.
      Specified by:
      getSize in interface SizeableParticle
    • isPureColor

      public boolean isPureColor()
      if this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust. aka no purple or brown or other colors like that
      Returns:
      whether the color should be pure