Class ParticleDustMulticolored

All Implemented Interfaces:
IParticle, SizeableParticle

public class ParticleDustMulticolored extends ParticleDustColored implements SizeableParticle
  • Constructor Details

    • ParticleDustMulticolored

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

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

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

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

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

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

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

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

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

      public ParticleDustMulticolored(@Nullable Color color)
    • ParticleDustMulticolored

      public ParticleDustMulticolored(int count)
    • ParticleDustMulticolored

      public ParticleDustMulticolored(double size)
    • ParticleDustMulticolored

      public ParticleDustMulticolored()
  • Method Details

    • inherit

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

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

      protected void display(org.bukkit.Location location, List<org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer> players)
      Overrides:
      display in class ParticleDustColored
    • 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 ParticleDustColored
      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 ParticleDustColored
      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 ParticleDustColored
      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 ParticleDustColored
      Returns:
      the modified count value
    • setTransitionColor

      public ParticleDustMulticolored setTransitionColor(@Nullable Color transition)
      Parameters:
      transition - the color this particle will transition to as it fades. doesn't work with pureColor
    • getTransitionColor

      public Color getTransitionColor()
      Returns:
      the color this particle will transition to as it fades. doesn't work with pureColor