public class SPacketParticles extends java.lang.Object implements Packet<INetHandlerPlayClient>
Constructor and Description |
---|
SPacketParticles() |
SPacketParticles(EnumParticleTypes particleIn,
boolean longDistanceIn,
float xIn,
float yIn,
float zIn,
float xOffsetIn,
float yOffsetIn,
float zOffsetIn,
float speedIn,
int countIn,
int... argumentsIn) |
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 SPacketParticles()
public SPacketParticles(EnumParticleTypes particleIn, boolean longDistanceIn, float xIn, float yIn, float zIn, float xOffsetIn, float yOffsetIn, float zOffsetIn, float speedIn, int countIn, int... argumentsIn)
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()