Class ParticlePolygon

All Implemented Interfaces:
Shape
Direct Known Subclasses:
ParticlePolygonFilled

public class ParticlePolygon extends ParticleShaper
  • Field Details

  • Constructor Details

    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius, int particleFrequency)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius, int particleFrequency)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, int particleFrequency, PolygonLayer... layers)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, LocationSafe center, PolygonLayer... layers)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, int particleFrequency, Corner... corners)
    • ParticlePolygon

      public ParticlePolygon(Particle particle, Corner... corners)
  • Method Details

    • display

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

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

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

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

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

      protected void initLayers(LocationSafe center, PolygonLayer... layers)
    • addCorner

      public void addCorner(int index, Corner corner, int... connections)
      Parameters:
      index - where the corner should be put in the list
      corner - corner to add
      connections - index of other corners to connect to the added corner
    • addCorner

      public void addCorner(Corner corner, int... connections)
      Parameters:
      corner - corner to add
      connections - index of other corners to connect to the added corner
    • removeCorner

      public void removeCorner(int index, boolean removeConnections)
      Parameters:
      index - index of the corner to remove
      removeConnections - whether all corners should sever their connection to the removed corner
    • removeCorner

      public void removeCorner(int index)
    • getCorner

      public Corner getCorner(int index)
    • getCorners

      public Corner[] getCorners()
    • getCornerAmount

      public int getCornerAmount()
    • getTotalDistance

      public double getTotalDistance()
      Specified by:
      getTotalDistance in interface Shape
      Overrides:
      getTotalDistance in class RotationHandler
      Returns:
      the distance between every location in this shape