Class ExplosionS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ExplosionS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ExplosionS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ExplosionS2CPacket()
ExplosionS2CPacket(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, Vec3d playerVelocity)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
x
private double x -
y
private double y -
z
private double z -
radius
private float radius -
affectedBlocks
-
playerVelocityX
private float playerVelocityX -
playerVelocityY
private float playerVelocityY -
playerVelocityZ
private float playerVelocityZ
-
-
Constructor Details
-
ExplosionS2CPacket
public ExplosionS2CPacket() -
ExplosionS2CPacket
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getPlayerVelocityX
@Environment(CLIENT) public float getPlayerVelocityX() -
getPlayerVelocityY
@Environment(CLIENT) public float getPlayerVelocityY() -
getPlayerVelocityZ
@Environment(CLIENT) public float getPlayerVelocityZ() -
getX
@Environment(CLIENT) public double getX() -
getY
@Environment(CLIENT) public double getY() -
getZ
@Environment(CLIENT) public double getZ() -
getRadius
@Environment(CLIENT) public float getRadius() -
getAffectedBlocks
-