Class ParticleSpiral

All Implemented Interfaces:
Shape

public class ParticleSpiral extends ParticleShaper
  • Field Details

    • circleInfos

      protected final List<CircleInfo> circleInfos
    • vectorHelper2

      protected final org.bukkit.util.Vector vectorHelper2
    • circleHelper

      protected final CircleInfo circleHelper
    • rotateCircles

      protected boolean rotateCircles
    • spin

      protected double spin
    • count

      protected int count
  • Constructor Details

    • ParticleSpiral

      public ParticleSpiral(Particle particle, double spin, int count, int particleFrequency, CircleInfo... circleInfos)
    • ParticleSpiral

      public ParticleSpiral(Particle particle, double spin, int count, CircleInfo... circleInfos)
    • ParticleSpiral

      public ParticleSpiral(Particle particle, double spin, CircleInfo... circleInfos)
    • ParticleSpiral

      public ParticleSpiral(Particle particle, int count, CircleInfo... circleInfos)
    • ParticleSpiral

      public ParticleSpiral(Particle particle, CircleInfo... circleInfos)
  • Method Details

    • display

      public void display()
      Specified by:
      display in interface Shape
      Specified by:
      display in class ParticleShaper
    • clone

      public ParticleSpiral clone()
      Specified by:
      clone in interface Shape
      Overrides:
      clone in class ParticleShaper
    • cloneConstructor

      protected ParticleShaper cloneConstructor()
      Specified by:
      cloneConstructor in class ParticleShaper
    • scale

      public void scale(double x, double y, double z)
      Description copied from interface: Shape
      Rescales this shape such that a shape with the xyz radiuses of 4, 3, 4, resized by 1.25, 1.25, 1.25, would have its radiuses become 5, 3.75, 5.
      Specified by:
      scale in interface Shape
      Overrides:
      scale in class RotationHandler
      Parameters:
      x - x scale
      y - y scale
      z - z scale
    • recalculateIfNeeded

      protected boolean recalculateIfNeeded(@Nullable org.bukkit.Location around)
      Overrides:
      recalculateIfNeeded in class RotationHandler
    • addCircleInfo

      public void addCircleInfo(int index, CircleInfo circleInfo)
    • addCircleInfo

      public void addCircleInfo(CircleInfo circleInfo)
    • removeCircleInfo

      public void removeCircleInfo(int index)
    • setWorld

      public void setWorld(org.bukkit.World world)
      Specified by:
      setWorld in interface Shape
      Overrides:
      setWorld in class ParticleShaper
    • setSpin

      public void setSpin(double spin)
      Parameters:
      spin - how many times the spiral goes in a circle throughout the whole shape
    • setCount

      public void setCount(int count)
      Parameters:
      count - how many spirals this shape displays
    • setRotateCircles

      public ParticleSpiral setRotateCircles(boolean rotateCircles)
      Parameters:
      rotateCircles - whether circles are rotated with the shape, defaults to true
    • getCircleInfo

      public CircleInfo getCircleInfo(int index)
    • getCircleInfos

      public CircleInfo[] getCircleInfos()
    • getSpin

      public double getSpin()
      Returns:
      how many times the spiral goes in a circle throughout the whole shape
    • getCount

      public int getCount()
      Returns:
      how many spirals this shape displays
    • isRotatingCircles

      public boolean isRotatingCircles()
      Returns:
      whether circles are rotated with the shape, defaults to true
    • getCircleInfoAmount

      public int getCircleInfoAmount()