Package hm.zelha.particlesfx.shapers
Class ParticleCylinder
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleCylinder
- All Implemented Interfaces:
Shape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected final CircleInfoprotected final List<CircleInfo> protected booleanprotected booleanprotected final Rotationprotected doubleFields 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
ConstructorsConstructorDescriptionParticleCylinder(Particle particle, int circleFrequency, int particleFrequency, CircleInfo... circleInfos) ParticleCylinder(Particle particle, int particleFrequency, CircleInfo... circleInfos) ParticleCylinder(Particle particle, CircleInfo... circleInfos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCircleInfo(int index, CircleInfo circleInfo) voidaddCircleInfo(CircleInfo circleInfo) clone()protected ParticleShapervoiddisplay()intgetCircleInfo(int index) intbooleanprotected voidprotected 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.voidsetCircleFrequency(int circleFrequency) setRotateCircles(boolean rotateCircles) 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
-
cirTracker
-
rotHelper2
-
circleHelper
-
rotateCircles
protected boolean rotateCircles -
recalculate
protected boolean recalculate -
surfaceArea
protected double surfaceArea -
circleFrequency
protected int circleFrequency
-
-
Constructor Details
-
ParticleCylinder
public ParticleCylinder(Particle particle, int circleFrequency, int particleFrequency, CircleInfo... circleInfos) -
ParticleCylinder
-
ParticleCylinder
-
-
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
-
recalcCircumferenceAndArea
protected void recalcCircumferenceAndArea() -
addCircleInfo
-
addCircleInfo
-
removeCircleInfo
public void removeCircleInfo(int index) -
setCircleFrequency
public void setCircleFrequency(int circleFrequency) - Parameters:
circleFrequency- amount of circles in the cylinder
-
setWorld
public void setWorld(org.bukkit.World world) - Specified by:
setWorldin interfaceShape- Overrides:
setWorldin classParticleShaper
-
setRotateCircles
- Parameters:
rotateCircles- whether circles are rotated with the shape, defaults to true
-
isRotatingCircles
public boolean isRotatingCircles()- Returns:
- whether circles are rotated with the shape, defaults to true
-
getCircleInfo
-
getCircleInfos
-
getCircleFrequency
public int getCircleFrequency()- Returns:
- amount of circles in the cylinder
-
getCircleInfoAmount
public int getCircleInfoAmount()
-