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>affectedBlocksprivate floatplayerVelocityXprivate floatplayerVelocityYprivate floatplayerVelocityZprivate floatradiusprivate doublexprivate doubleyprivate doublez -
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 voidapply(ClientPlayPacketListener clientPlayPacketListener)List<BlockPos>getAffectedBlocks()floatgetPlayerVelocityX()floatgetPlayerVelocityY()floatgetPlayerVelocityZ()floatgetRadius()doublegetX()doublegetY()doublegetZ()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin 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
-