Package hm.zelha.particlesfx.shapers
Class ParticlePolygon
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticlePolygon
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
ParticlePolygonFilled
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionParticlePolygon(Particle particle, int particleFrequency, Corner... corners) ParticlePolygon(Particle particle, Corner... corners) ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius) ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius) ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius, int particleFrequency) ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius, int particleFrequency) ParticlePolygon(Particle particle, LocationSafe center, int particleFrequency, PolygonLayer... layers) ParticlePolygon(Particle particle, LocationSafe center, PolygonLayer... layers) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclone()protected ParticleShapervoiddisplay()getCorner(int index) intCorner[]doubleprotected voidinitLayers(LocationSafe center, PolygonLayer... layers) protected booleanrecalculateIfNeeded(org.bukkit.Location around) voidremoveCorner(int index) voidremoveCorner(int index, boolean removeConnections) 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, getWorld, getYaw, move, move, move, removeCompound, rotate, rotateAroundLocation, scale, 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, getWorld, getYaw, move, move, move, rotate, rotateAroundLocation, scale, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYaw
-
Field Details
-
corners
-
-
Constructor Details
-
ParticlePolygon
public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius, int particleFrequency) -
ParticlePolygon
public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double xRadius, double yRadius, double zRadius) -
ParticlePolygon
public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius, int particleFrequency) -
ParticlePolygon
public ParticlePolygon(Particle particle, LocationSafe center, int cornersPerLayer, int layers, double radius) -
ParticlePolygon
public ParticlePolygon(Particle particle, LocationSafe center, int particleFrequency, PolygonLayer... layers) -
ParticlePolygon
-
ParticlePolygon
-
ParticlePolygon
-
-
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
-
recalculateIfNeeded
protected boolean recalculateIfNeeded(@Nullable org.bukkit.Location around) - Overrides:
recalculateIfNeededin classRotationHandler
-
setWorld
public void setWorld(org.bukkit.World world) - Specified by:
setWorldin interfaceShape- Overrides:
setWorldin classParticleShaper
-
initLayers
-
addCorner
- Parameters:
index- where the corner should be put in the listcorner- corner to addconnections- index of other corners to connect to the added corner
-
addCorner
- Parameters:
corner- corner to addconnections- index of other corners to connect to the added corner
-
removeCorner
public void removeCorner(int index, boolean removeConnections) - Parameters:
index- index of the corner to removeremoveConnections- whether all corners should sever their connection to the removed corner
-
removeCorner
public void removeCorner(int index) -
getCorner
-
getCorners
-
getCornerAmount
public int getCornerAmount() -
getTotalDistance
public double getTotalDistance()- Specified by:
getTotalDistancein interfaceShape- Overrides:
getTotalDistancein classRotationHandler- Returns:
- the distance between every location in this shape
-