public class ParticleS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
count |
private boolean |
longDistance |
private float |
offsetX |
private float |
offsetY |
private float |
offsetZ |
private ParticleEffect |
parameters |
private float |
speed |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
ParticleS2CPacket() |
ParticleS2CPacket(T parameters,
boolean longDistance,
double double2,
double double3,
double double4,
float float2,
float float3,
float float4,
float float5,
int int2) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getCount() |
float |
getOffsetX() |
float |
getOffsetY() |
float |
getOffsetZ() |
ParticleEffect |
getParameters() |
float |
getSpeed() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isLongDistance() |
void |
read(PacketByteBuf buf) |
private <T extends ParticleEffect> |
readParticleParameters(PacketByteBuf buf,
ParticleType<T> type) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private double x
private double y
private double z
private float offsetX
private float offsetY
private float offsetZ
private float speed
private int count
private boolean longDistance
private ParticleEffect parameters
public ParticleS2CPacket()
public ParticleS2CPacket(T parameters, boolean longDistance, double double2, double double3, double double4, float float2, float float3, float float4, float float5, int int2)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
private <T extends ParticleEffect> T readParticleParameters(PacketByteBuf buf, ParticleType<T> type)
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public boolean isLongDistance()
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public float getOffsetX()
@Environment(value=CLIENT) public float getOffsetY()
@Environment(value=CLIENT) public float getOffsetZ()
@Environment(value=CLIENT) public float getSpeed()
@Environment(value=CLIENT) public int getCount()
@Environment(value=CLIENT) public ParticleEffect getParameters()
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>