Class ParticleCircle

All Implemented Interfaces:
Shape
Direct Known Subclasses:
ParticleCircleFilled, ParticleSphere

public class ParticleCircle extends ParticleShaper
  • Field Details

    • xRadius

      protected double xRadius
    • zRadius

      protected double zRadius
    • limit

      protected double limit
    • limitInverse

      protected boolean limitInverse
  • Constructor Details

    • ParticleCircle

      public ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, double pitch, double yaw, double roll, int particleFrequency)
    • ParticleCircle

      public ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, double pitch, double yaw, double roll)
    • ParticleCircle

      public ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, int particleFrequency)
    • ParticleCircle

      public ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius)
    • ParticleCircle

      public ParticleCircle(Particle particle, LocationSafe center, double radius)
  • Method Details

    • display

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

      public ParticleCircle 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
    • setCenter

      public void setCenter(LocationSafe center)
    • setXRadius

      public void setXRadius(double xRadius)
    • setZRadius

      public void setZRadius(double zRadius)
    • setLimit

      public ParticleCircle setLimit(double limit)
      Parameters:
      limit - percentage of the shape that should generate, such that 0 would be the entire shape and 50 would be half the shape.
    • setLimitInverse

      public ParticleCircle setLimitInverse(boolean limitInverse)
      Parameters:
      limitInverse - determines if the limit cuts off at the left or right. default false (left)
    • getCenter

      public org.bukkit.Location getCenter()
    • getXRadius

      public double getXRadius()
    • getZRadius

      public double getZRadius()
    • getLimit

      public double getLimit()
      Returns:
      percentage of the circle that should generate, such that 0 would be the entire sphere and 50 would be a half sphere.
    • isLimitInverse

      public boolean isLimitInverse()
      Returns:
      determines if the limit cuts off at the left or right. default false (left)