Class ParticleLineCurved

All Implemented Interfaces:
Shape

public class ParticleLineCurved extends ParticleLine
  • Field Details

    • curves

      protected final List<CurveInfo> curves
    • vectorHelper2

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

      protected boolean rotateCurves
  • Constructor Details

    • ParticleLineCurved

      public ParticleLineCurved(Particle particle, int particleFrequency, LocationSafe... locations)
    • ParticleLineCurved

      public ParticleLineCurved(Particle particle, LocationSafe... locations)
  • Method Details

    • display

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

      public ParticleLineCurved clone()
      Specified by:
      clone in interface Shape
      Overrides:
      clone in class ParticleLine
    • cloneConstructor

      protected ParticleShaper cloneConstructor()
      Overrides:
      cloneConstructor in class ParticleLine
    • 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
    • addCurve

      public void addCurve(int index, CurveInfo curve)
    • addCurve

      public void addCurve(CurveInfo curve)
    • removeCurve

      public void removeCurve(int index)
    • setRotateCurves

      public ParticleLineCurved setRotateCurves(boolean rotateCurves)
      Parameters:
      rotateCurves - whether curves are rotated with the shape, defaults to true
    • isRotatingCurves

      public boolean isRotatingCurves()
      Returns:
      whether curves are rotated with the shape, defaults to true
    • getCurve

      public CurveInfo getCurve(int index)
    • getCurveAmount

      public int getCurveAmount()