Package hm.zelha.particlesfx.particles
Class ParticleVibration
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.parents.TravellingParticle
hm.zelha.particlesfx.particles.ParticleVibration
- All Implemented Interfaces:
IParticle
-
Field Summary
Fields inherited from class hm.zelha.particlesfx.particles.parents.TravellingParticle
control, inverse, toGo, velocity -
Constructor Summary
ConstructorsConstructorDescriptionParticleVibration(double offsetX, double offsetY, double offsetZ) ParticleVibration(double offsetX, double offsetY, double offsetZ, int count) ParticleVibration(int count) ParticleVibration(org.bukkit.entity.Entity entity) ParticleVibration(org.bukkit.entity.Entity entity, double offsetX, double offsetY, double offsetZ) ParticleVibration(org.bukkit.entity.Entity entity, double offsetX, double offsetY, double offsetZ, int count) ParticleVibration(org.bukkit.Location toGo) ParticleVibration(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) ParticleVibration(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) ParticleVibration(org.bukkit.util.Vector velocity) ParticleVibration(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) ParticleVibration(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
Method Summary
Modifier and TypeMethodDescriptionclone()intorg.bukkit.entity.EntityThis particle can track entities client-side, which can make for some really neat effects.protected org.bukkit.util.VectorgetOffsets(org.bukkit.Location location) Meant to be overridden by child classes to modify the offset values of the packet sent to the player.protected intMeant to be overridden by child classes to modify the count value of the packet sent to the player.protected net.minecraft.network.protocol.PacketgetStrangePacket(org.bukkit.Location location) Meant to be overridden by child classes when a different packet is needed to display the particle.protected org.bukkit.util.VectorgetXYZ(org.bukkit.Location location) Meant to be overridden by child classes to modify the X/Y/Z values of the packet sent to the player.setArrivalTime(int arrivalTime) setEntity(org.bukkit.entity.Entity entity) This particle can track entities client-side, which can make for some really neat effects.Methods inherited from class hm.zelha.particlesfx.particles.parents.TravellingParticle
display, display, displayForPlayers, displayForPlayers, getLocationToGo, getPacketSpeed, getVelocity, setLocationToGo, setLocationToGo, setVelocity, setVelocityMethods inherited from class hm.zelha.particlesfx.particles.parents.Particle
display, display, displayForPlayers, displayForPlayers, generateFakeOffset, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeed
-
Constructor Details
-
ParticleVibration
public ParticleVibration(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) -
ParticleVibration
public ParticleVibration(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
ParticleVibration
public ParticleVibration(org.bukkit.entity.Entity entity, double offsetX, double offsetY, double offsetZ, int count) -
ParticleVibration
public ParticleVibration(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) -
ParticleVibration
public ParticleVibration(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) -
ParticleVibration
public ParticleVibration(org.bukkit.entity.Entity entity, double offsetX, double offsetY, double offsetZ) -
ParticleVibration
public ParticleVibration(double offsetX, double offsetY, double offsetZ, int count) -
ParticleVibration
public ParticleVibration(double offsetX, double offsetY, double offsetZ) -
ParticleVibration
public ParticleVibration(int count) -
ParticleVibration
public ParticleVibration(org.bukkit.Location toGo) -
ParticleVibration
public ParticleVibration(org.bukkit.util.Vector velocity) -
ParticleVibration
public ParticleVibration(org.bukkit.entity.Entity entity) -
ParticleVibration
public ParticleVibration()
-
-
Method Details
-
inherit
- Specified by:
inheritin interfaceIParticle- Overrides:
inheritin classTravellingParticle- Parameters:
particle- particle for this object to copy data from- Returns:
- this object
-
clone
- Specified by:
clonein interfaceIParticle- Specified by:
clonein classTravellingParticle
-
getXYZ
protected org.bukkit.util.Vector getXYZ(org.bukkit.Location location) Description copied from class:ParticleMeant to be overridden by child classes to modify the X/Y/Z values of the packet sent to the player.- Overrides:
getXYZin classTravellingParticle- Parameters:
location- the location passed into the display method- Returns:
- the xyzHelper with the modified X/Y/Z values
-
getOffsets
protected org.bukkit.util.Vector getOffsets(org.bukkit.Location location) Description copied from class:ParticleMeant to be overridden by child classes to modify the offset values of the packet sent to the player.- Overrides:
getOffsetsin classTravellingParticle- Parameters:
location- the location passed into the display method- Returns:
- the offsetHelper with the modified offset values
-
getPacketCount
protected int getPacketCount()Description copied from class:ParticleMeant to be overridden by child classes to modify the count value of the packet sent to the player.- Overrides:
getPacketCountin classTravellingParticle- Returns:
- the modified count value
-
getStrangePacket
protected net.minecraft.network.protocol.Packet getStrangePacket(org.bukkit.Location location) Description copied from class:ParticleMeant to be overridden by child classes when a different packet is needed to display the particle.- Overrides:
getStrangePacketin classParticle- Parameters:
location- the location passed into the display method- Returns:
- the different packet
-
setEntity
This particle can track entities client-side, which can make for some really neat effects.- Parameters:
entity- entity for this particle to track
-
setArrivalTime
- Parameters:
arrivalTime- the amount of ticks it takes this particle to go from its origin to its destination, default 20 ticks or 1 second.
-
getEntity
public org.bukkit.entity.Entity getEntity()This particle can track entities client-side, which can make for some really neat effects.- Returns:
- entity for this particle to track
-
getArrivalTime
public int getArrivalTime()- Returns:
- the amount of ticks it takes this particle to go from its origin to its destination, default 20 ticks or 1 second.
-