public class ParticleTypeMotion extends ParticleType
Class used to represent particle type that can construct particle packet with desired initial motion.
It provides a non-reflective packetMotion
and packet method overloads
to construct particle packet with desired parameters.
All packetMotion and packet methods does not validate parameters in any way.
ParticleType| Constructor and Description |
|---|
ParticleTypeMotion() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
packetMotion(boolean far,
double x,
double y,
double z,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
java.lang.Object |
packetMotion(boolean far,
double x,
double y,
double z,
org.bukkit.util.Vector dir)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
java.lang.Object |
packetMotion(boolean far,
org.bukkit.Location loc,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
java.lang.Object |
packetMotion(boolean far,
org.bukkit.Location loc,
org.bukkit.util.Vector dir)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
java.lang.Object |
packetMotion(boolean far,
org.bukkit.util.Vector loc,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
java.lang.Object |
packetMotion(boolean far,
org.bukkit.util.Vector loc,
org.bukkit.util.Vector dir)
Construct particle packet that will
spawn 1 particle at specified position
with motion set to provided direction.
|
public java.lang.Object packetMotion(boolean far,
org.bukkit.Location loc,
org.bukkit.util.Vector dir)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).loc - a Location containing position.dir - a Vector direction.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.public java.lang.Object packetMotion(boolean far,
org.bukkit.util.Vector loc,
org.bukkit.util.Vector dir)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).loc - a Vector containing position.dir - a Vector direction.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.public java.lang.Object packetMotion(boolean far,
double x,
double y,
double z,
org.bukkit.util.Vector dir)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).x - component of a position.y - component of a position.z - component of a position.dir - a Vector direction.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.public java.lang.Object packetMotion(boolean far,
org.bukkit.Location loc,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).loc - a Location containing position.dirX - component of direction vector.dirY - component of direction vector.dirZ - component of direction vector.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.public java.lang.Object packetMotion(boolean far,
org.bukkit.util.Vector loc,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).loc - a Vector containing position.dirX - component of direction vector.dirY - component of direction vector.dirZ - component of direction vector.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.public java.lang.Object packetMotion(boolean far,
double x,
double y,
double z,
double dirX,
double dirY,
double dirZ)
Construct particle packet that will spawn 1 particle at specified position with motion set to provided direction.
Parameters are not validated in any way.
It is wise to check, if particle is supported by current Spigot version
using isValid method.
far - if true, packets will be rendered much further
than 16 blocks (flag is ignored prior to MC 1.8 versions).x - component of a position.y - component of a position.z - component of a position.dirX - component of direction vector.dirY - component of direction vector.dirZ - component of direction vector.Packet object.java.lang.IllegalStateException - when requested particle type
is not supported by this server version.Copyright © 2020. All Rights Reserved.