Package hm.zelha.particlesfx.particles
Class ParticlePortal
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.parents.TravellingParticle
hm.zelha.particlesfx.particles.ParticlePortal
- All Implemented Interfaces:
IParticle
-
Field Summary
Fields inherited from class hm.zelha.particlesfx.particles.parents.TravellingParticle
control, inverse, toGo, velocity -
Constructor Summary
ConstructorsConstructorDescriptionParticlePortal(double offsetX, double offsetY, double offsetZ) ParticlePortal(double offsetX, double offsetY, double offsetZ, int count) ParticlePortal(int count) ParticlePortal(org.bukkit.Location toGo) ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) ParticlePortal(org.bukkit.util.Vector velocity) ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
Method Summary
Modifier and TypeMethodDescriptionclone()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.booleansetInverse(boolean inverse) Methods inherited from class hm.zelha.particlesfx.particles.parents.TravellingParticle
display, display, displayForPlayers, displayForPlayers, getLocationToGo, getPacketCount, getPacketSpeed, getVelocity, getXYZ, setLocationToGo, setLocationToGo, setVelocity, setVelocityMethods inherited from class hm.zelha.particlesfx.particles.parents.Particle
display, display, displayForPlayers, displayForPlayers, generateFakeOffset, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, getStrangePacket, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeed
-
Constructor Details
-
ParticlePortal
public ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count) -
ParticlePortal
public ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count) -
ParticlePortal
public ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ) -
ParticlePortal
public ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ) -
ParticlePortal
public ParticlePortal(double offsetX, double offsetY, double offsetZ, int count) -
ParticlePortal
public ParticlePortal(double offsetX, double offsetY, double offsetZ) -
ParticlePortal
public ParticlePortal(int count) -
ParticlePortal
public ParticlePortal(org.bukkit.Location toGo) -
ParticlePortal
public ParticlePortal(org.bukkit.util.Vector velocity) -
ParticlePortal
public ParticlePortal()
-
-
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
-
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
-
setInverse
- Parameters:
inverse- whether this class uses REVERSE_PORTAL or PORTAL, default false (REVERSE_PORTAL)
-
isInverse
public boolean isInverse()- Returns:
- whether this class uses REVERSE_PORTAL or PORTAL, default false (REVERSE_PORTAL)
-