Package hm.zelha.particlesfx.shapers
Class ParticleSpiral
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleSpiral
- All Implemented Interfaces:
Shape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CircleInfoprotected final List<CircleInfo> protected intprotected booleanprotected doubleprotected final org.bukkit.util.VectorFields inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
animator, async, currentCount, delay, locationHelper, mechanics, overallCount, particle, particleFrequency, particlesPerDisplay, players, secondaryParticles, vectorHelperFields inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
centroid, compounds, lastRotatedAround, locations, originalCentroid, origins, rhLocationHelper, rhRotHelper, rhVectorHelper, rot, rot2, rotHelper -
Constructor Summary
ConstructorsConstructorDescriptionParticleSpiral(Particle particle, double spin, int count, int particleFrequency, CircleInfo... circleInfos) ParticleSpiral(Particle particle, double spin, int count, CircleInfo... circleInfos) ParticleSpiral(Particle particle, double spin, CircleInfo... circleInfos) ParticleSpiral(Particle particle, int count, CircleInfo... circleInfos) ParticleSpiral(Particle particle, CircleInfo... circleInfos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCircleInfo(int index, CircleInfo circleInfo) voidaddCircleInfo(CircleInfo circleInfo) clone()protected ParticleShapervoiddisplay()getCircleInfo(int index) intintgetCount()doublegetSpin()booleanprotected booleanrecalculateIfNeeded(org.bukkit.Location around) voidremoveCircleInfo(int index) voidscale(double x, double y, double z) 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.voidsetCount(int count) setRotateCircles(boolean rotateCircles) voidsetSpin(double spin) voidsetWorld(org.bukkit.World world) Methods inherited from class hm.zelha.particlesfx.shapers.parents.ParticleShaper
addMechanic, addParticle, addPlayer, addPlayer, applyMechanics, getCurrentParticle, getDelay, getMechanicAmount, getParticle, getParticleFrequency, getParticlesPerDisplay, getPlayerAmount, getPlayers, getSecondaryParticle, getSecondaryParticleAmount, hasPlayer, isAsync, isRunning, removeMechanic, removeParticle, removePlayer, removePlayer, setAsync, setDelay, setDisplayPosition, setParticle, setParticleFrequency, setParticlesPerDisplay, start, stopMethods inherited from class hm.zelha.particlesfx.shapers.parents.RotationHandler
addCompound, calculateCentroid, face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getDirection, getLocationAmount, getLocations, getLocationsList, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, removeCompound, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYawMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hm.zelha.particlesfx.shapers.parents.Shape
face, faceAroundLocation, getAroundAxisPitch, getAroundAxisRoll, getAroundAxisYaw, getAroundPitch, getAroundRoll, getAroundRotationOrder, getAroundYaw, getAxisPitch, getAxisRoll, getAxisYaw, getClonedCenter, getLocationAmount, getLocations, getPitch, getRoll, getRotationOrder, getTotalDistance, getWorld, getYaw, move, move, move, rotate, rotateAroundLocation, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYaw
-
Field Details
-
circleInfos
-
vectorHelper2
protected final org.bukkit.util.Vector vectorHelper2 -
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
-
ParticleSpiral
-
ParticleSpiral
-
ParticleSpiral
-
-
Method Details
-
display
public void display()- Specified by:
displayin interfaceShape- Specified by:
displayin classParticleShaper
-
clone
- Specified by:
clonein interfaceShape- Overrides:
clonein classParticleShaper
-
cloneConstructor
- Specified by:
cloneConstructorin classParticleShaper
-
scale
public void scale(double x, double y, double z) Description copied from interface:ShapeRescales 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:
scalein interfaceShape- Overrides:
scalein classRotationHandler- Parameters:
x- x scaley- y scalez- z scale
-
recalculateIfNeeded
protected boolean recalculateIfNeeded(@Nullable org.bukkit.Location around) - Overrides:
recalculateIfNeededin classRotationHandler
-
addCircleInfo
-
addCircleInfo
-
removeCircleInfo
public void removeCircleInfo(int index) -
setWorld
public void setWorld(org.bukkit.World world) - Specified by:
setWorldin interfaceShape- Overrides:
setWorldin classParticleShaper
-
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
- Parameters:
rotateCircles- whether circles are rotated with the shape, defaults to true
-
getCircleInfo
-
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()
-