Package hm.zelha.particlesfx.shapers
Class ParticleFluid
java.lang.Object
hm.zelha.particlesfx.shapers.parents.RotationHandler
hm.zelha.particlesfx.shapers.parents.ParticleShaper
hm.zelha.particlesfx.shapers.ParticleFluid
- All Implemented Interfaces:
Shape
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected final org.bukkit.Locationprotected doubleprotected doubleprotected final ThreadLocalRandomprotected LocationSafeprotected 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
ConstructorsConstructorDescriptionParticleFluid(Particle particle, LocationSafe spawnLocation, double gravity, double repulsion, int particleFrequency) -
Method Summary
Modifier and TypeMethodDescriptionclone()protected ParticleShapervoiddisplay()doubledoubledoubledoublesetAttraction(double attraction) voidsetGravity(double gravity) voidsetParticleFrequency(int particleFrequency) voidsetRepulsion(double repulsion) setRepulsionDistance(double repulsionDistance) voidsetSpawnLocation(LocationSafe spawnLocation) voidsetWorld(org.bukkit.World world) start()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, setParticlesPerDisplay, 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, 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, scale, setAroundAxisPitch, setAroundAxisRoll, setAroundAxisRotation, setAroundAxisYaw, setAroundPitch, setAroundRoll, setAroundRotation, setAroundRotationOrder, setAroundYaw, setAxisPitch, setAxisRoll, setAxisRotation, setAxisYaw, setPitch, setRoll, setRotation, setRotationOrder, setYaw
-
Field Details
-
rng
-
locationHelper2
protected final org.bukkit.Location locationHelper2 -
vectorHelper2
protected final org.bukkit.util.Vector vectorHelper2 -
spawnLocation
-
gravity
protected double gravity -
repulsion
protected double repulsion -
repulsionDistance
protected double repulsionDistance -
attraction
protected double attraction
-
-
Constructor Details
-
ParticleFluid
public ParticleFluid(Particle particle, LocationSafe spawnLocation, double gravity, double repulsion, int particleFrequency)
-
-
Method Details
-
start
- Specified by:
startin interfaceShape- Overrides:
startin classParticleShaper- Returns:
- this object
-
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
-
setParticleFrequency
public void setParticleFrequency(int particleFrequency) - Specified by:
setParticleFrequencyin interfaceShape- Overrides:
setParticleFrequencyin classParticleShaper- Parameters:
particleFrequency- amount of times to display the particle per full animation
-
setWorld
public void setWorld(org.bukkit.World world) - Specified by:
setWorldin interfaceShape- Overrides:
setWorldin classParticleShaper
-
setGravity
public void setGravity(double gravity) - Parameters:
gravity- how much the particle moves towards the ground per display
-
setRepulsion
public void setRepulsion(double repulsion) - Parameters:
repulsion- how much particles push each other away
-
setRepulsionDistance
- Parameters:
repulsionDistance- how close particles have to be to push each other away
-
setAttraction
- Parameters:
attraction- how much particles move toward each other
-
setSpawnLocation
- Parameters:
spawnLocation- where particles will appear when increasing particle frequency
-
getGravity
public double getGravity()- Returns:
- how much the particle moves towards the ground per display
-
getRepulsion
public double getRepulsion()- Returns:
- how much particles push each other away
-
getRepulsionDistance
public double getRepulsionDistance()- Returns:
- how close particles have to be to push each other away
-
getAttraction
public double getAttraction()- Returns:
- how much particles move toward each other
-
getSpawnLocation
- Returns:
- where particles will appear when increasing particle frequency
-