Package hm.zelha.particlesfx.shapers
Class ParticleCircle
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleCircle
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
ParticleCircleFilled,ParticleSphere
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected booleanprotected doubleprotected 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
ConstructorsConstructorDescriptionParticleCircle(Particle particle, LocationSafe center, double radius) ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius) ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, double pitch, double yaw, double roll) ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, double pitch, double yaw, double roll, int particleFrequency) ParticleCircle(Particle particle, LocationSafe center, double xRadius, double zRadius, int particleFrequency) -
Method Summary
Modifier and TypeMethodDescriptionclone()protected ParticleShapervoiddisplay()org.bukkit.LocationdoublegetLimit()doubledoublebooleanvoidscale(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.voidsetCenter(LocationSafe center) setLimit(double limit) setLimitInverse(boolean limitInverse) voidsetXRadius(double xRadius) voidsetZRadius(double zRadius) 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, setWorld, 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, recalculateIfNeeded, 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
-
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
-
ParticleCircle
-
-
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
-
setCenter
-
setXRadius
public void setXRadius(double xRadius) -
setZRadius
public void setZRadius(double zRadius) -
setLimit
- 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
- 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)
-