public class ExplosionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private List<BlockPos> |
affectedBlocks |
private float |
playerVelocityX |
private float |
playerVelocityY |
private float |
playerVelocityZ |
private float |
radius |
private double |
x |
private double |
y |
private double |
z |
Constructor and Description |
---|
ExplosionS2CPacket() |
ExplosionS2CPacket(double x,
double y,
double z,
float radius,
List<BlockPos> affectedBlocks,
Vec3d playerVelocity) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
List<BlockPos> |
getAffectedBlocks() |
float |
getPlayerVelocityX() |
float |
getPlayerVelocityY() |
float |
getPlayerVelocityZ() |
float |
getRadius() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
read(PacketByteBuf buf) |
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 radius
private float playerVelocityX
private float playerVelocityY
private float playerVelocityZ
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public float getPlayerVelocityX()
@Environment(value=CLIENT) public float getPlayerVelocityY()
@Environment(value=CLIENT) public float getPlayerVelocityZ()
@Environment(value=CLIENT) public double getX()
@Environment(value=CLIENT) public double getY()
@Environment(value=CLIENT) public double getZ()
@Environment(value=CLIENT) public float getRadius()