Package hm.zelha.particlesfx.particles
Class ParticleTrail
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.parents.TravellingParticle
hm.zelha.particlesfx.particles.ParticleTrail
- All Implemented Interfaces:
ColorableParticle,IParticle
-
Field Summary
FieldsFields inherited from class hm.zelha.particlesfx.particles.parents.TravellingParticle
control, inverse, toGo, velocity -
Constructor Summary
ConstructorsConstructorDescriptionParticleTrail(double offsetX, double offsetY, double offsetZ) ParticleTrail(double offsetX, double offsetY, double offsetZ, int count) ParticleTrail(int count) ParticleTrail(Color color) ParticleTrail(Color color, double offsetX, double offsetY, double offsetZ) ParticleTrail(Color color, double offsetX, double offsetY, double offsetZ, int count) ParticleTrail(Color color, org.bukkit.Location toGo) ParticleTrail(Color color, org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) ParticleTrail(Color color, org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) ParticleTrail(Color color, org.bukkit.util.Vector velocity) ParticleTrail(Color color, org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) ParticleTrail(Color color, org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) ParticleTrail(org.bukkit.Location toGo) ParticleTrail(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) ParticleTrail(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) ParticleTrail(org.bukkit.util.Vector velocity) ParticleTrail(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) ParticleTrail(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
Method Summary
Modifier and TypeMethodDescriptionclone()intgetColor()nullable to allow for randomly colored particles without being complicatedprotected 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) voidsetColor(int red, int green, int blue) voidMethods 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, setSpeedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hm.zelha.particlesfx.particles.parents.IParticle
display, displayForPlayers, displayForPlayers, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeed
-
Field Details
-
color
-
-
Constructor Details
-
ParticleTrail
public ParticleTrail(Color color, org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) -
ParticleTrail
public ParticleTrail(Color color, org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
ParticleTrail
public ParticleTrail(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) -
ParticleTrail
public ParticleTrail(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
ParticleTrail
-
ParticleTrail
public ParticleTrail(Color color, org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) -
ParticleTrail
public ParticleTrail(Color color, org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) -
ParticleTrail
public ParticleTrail(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) -
ParticleTrail
public ParticleTrail(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) -
ParticleTrail
-
ParticleTrail
public ParticleTrail(double offsetX, double offsetY, double offsetZ, int count) -
ParticleTrail
-
ParticleTrail
-
ParticleTrail
public ParticleTrail(org.bukkit.Location toGo) -
ParticleTrail
public ParticleTrail(org.bukkit.util.Vector velocity) -
ParticleTrail
-
ParticleTrail
public ParticleTrail(double offsetX, double offsetY, double offsetZ) -
ParticleTrail
public ParticleTrail(int count) -
ParticleTrail
public ParticleTrail()
-
-
Method Details
-
inherit
- Specified by:
inheritin interfaceColorableParticle- Specified by:
inheritin interfaceIParticle- Overrides:
inheritin classTravellingParticle- Parameters:
particle- particle for this object to copy data from- Returns:
- this object
-
clone
- Specified by:
clonein interfaceColorableParticle- 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
-
setColor
- Specified by:
setColorin interfaceColorableParticle- Parameters:
color- color to set, null if you want random coloring
-
setColor
public void setColor(int red, int green, int blue) - Specified by:
setColorin interfaceColorableParticle
-
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.
-
getColor
Description copied from interface:ColorableParticlenullable to allow for randomly colored particles without being complicated- Specified by:
getColorin interfaceColorableParticle- Returns:
- color this particle is using
-
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.
-