public class S2APacketParticles extends java.lang.Object implements Packet<INetHandlerPlayClient>
Constructor and Description |
---|
S2APacketParticles() |
S2APacketParticles(EnumParticleTypes particleTypeIn,
boolean longDistanceIn,
float x,
float y,
float z,
float xOffsetIn,
float yOffset,
float zOffset,
float particleSpeedIn,
int particleCountIn,
int... particleArgumentsIn) |
Modifier and Type | Method and Description |
---|---|
int[] |
getParticleArgs()
Gets the particle arguments.
|
int |
getParticleCount()
Gets the amount of particles to spawn
|
float |
getParticleSpeed()
Gets the speed of the particle animation (used in client side rendering).
|
EnumParticleTypes |
getParticleType() |
double |
getXCoordinate()
Gets the x coordinate to spawn the particle.
|
float |
getXOffset()
Gets the x coordinate offset for the particle.
|
double |
getYCoordinate()
Gets the y coordinate to spawn the particle.
|
float |
getYOffset()
Gets the y coordinate offset for the particle.
|
double |
getZCoordinate()
Gets the z coordinate to spawn the particle.
|
float |
getZOffset()
Gets the z coordinate offset for the particle.
|
boolean |
isLongDistance() |
void |
processPacket(INetHandlerPlayClient handler)
Passes this Packet on to the NetHandler for processing.
|
void |
readPacketData(PacketBuffer buf)
Reads the raw packet data from the data stream.
|
void |
writePacketData(PacketBuffer buf)
Writes the raw packet data to the data stream.
|
public S2APacketParticles()
public S2APacketParticles(EnumParticleTypes particleTypeIn, boolean longDistanceIn, float x, float y, float z, float xOffsetIn, float yOffset, float zOffset, float particleSpeedIn, int particleCountIn, int... particleArgumentsIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public EnumParticleTypes getParticleType()
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public boolean isLongDistance()
public double getXCoordinate()
public double getYCoordinate()
public double getZCoordinate()
public float getXOffset()
public float getYOffset()
public float getZOffset()
public float getParticleSpeed()
public int getParticleCount()
public int[] getParticleArgs()