Class ExplosionS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ExplosionS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
Sent when an explosion occurs in the world.
The client will update the player's velocity as well as performing an explosion.
- See Also:
- Mappings:
Namespace Name official vvintermediary net/minecraft/class_2664named net/minecraft/network/packet/s2c/play/ExplosionS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final floatprivate final floatprivate final floatprivate final doubleprivate final doubleprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionExplosionS2CPacket(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable Vec3d playerVelocity) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) floatfloatfloatfloatdoublegetX()doublegetY()doublegetZ()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.Packet
isWritingErrorSkippable
-
Field Details
-
x
private final double x- Mappings:
Namespace Name Mixin selector official aLvv;a:Dintermediary field_12180Lnet/minecraft/class_2664;field_12180:Dnamed xLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;x:D
-
y
private final double y- Mappings:
Namespace Name Mixin selector official bLvv;b:Dintermediary field_12178Lnet/minecraft/class_2664;field_12178:Dnamed yLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;y:D
-
z
private final double z- Mappings:
Namespace Name Mixin selector official cLvv;c:Dintermediary field_12177Lnet/minecraft/class_2664;field_12177:Dnamed zLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;z:D
-
radius
private final float radius- Mappings:
Namespace Name Mixin selector official dLvv;d:Fintermediary field_12179Lnet/minecraft/class_2664;field_12179:Fnamed radiusLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;radius:F
-
affectedBlocks
- Mappings:
Namespace Name Mixin selector official eLvv;e:Ljava/util/List;intermediary field_12181Lnet/minecraft/class_2664;field_12181:Ljava/util/List;named affectedBlocksLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;affectedBlocks:Ljava/util/List;
-
playerVelocityX
private final float playerVelocityX- Mappings:
Namespace Name Mixin selector official fLvv;f:Fintermediary field_12176Lnet/minecraft/class_2664;field_12176:Fnamed playerVelocityXLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityX:F
-
playerVelocityY
private final float playerVelocityY- Mappings:
Namespace Name Mixin selector official gLvv;g:Fintermediary field_12183Lnet/minecraft/class_2664;field_12183:Fnamed playerVelocityYLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityY:F
-
playerVelocityZ
private final float playerVelocityZ- Mappings:
Namespace Name Mixin selector official hLvv;h:Fintermediary field_12182Lnet/minecraft/class_2664;field_12182:Fnamed playerVelocityZLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityZ:F
-
-
Constructor Details
-
ExplosionS2CPacket
public ExplosionS2CPacket(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable @Nullable Vec3d playerVelocity) - Mappings:
Namespace Name Mixin selector official <init>Lvv;<init>(DDDFLjava/util/List;Leea;)Vintermediary <init>Lnet/minecraft/class_2664;<init>(DDDFLjava/util/List;Lnet/minecraft/class_243;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(DDDFLjava/util/List;Lnet/minecraft/util/math/Vec3d;)V
-
ExplosionS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Lvv;<init>(Lsf;)Vintermediary <init>Lnet/minecraft/class_2664;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
-
Method Details
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLuo;a(Lsf;)Vintermediary method_11052Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLvv;a(Lur;)Vintermediary method_11480Lnet/minecraft/class_2664;method_11480(Lnet/minecraft/class_2602;)Vnamed applyLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getPlayerVelocityX
public float getPlayerVelocityX()- Mappings:
Namespace Name Mixin selector official aLvv;a()Fintermediary method_11472Lnet/minecraft/class_2664;method_11472()Fnamed getPlayerVelocityXLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityX()F
-
getPlayerVelocityY
public float getPlayerVelocityY()- Mappings:
Namespace Name Mixin selector official cLvv;c()Fintermediary method_11473Lnet/minecraft/class_2664;method_11473()Fnamed getPlayerVelocityYLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityY()F
-
getPlayerVelocityZ
public float getPlayerVelocityZ()- Mappings:
Namespace Name Mixin selector official dLvv;d()Fintermediary method_11474Lnet/minecraft/class_2664;method_11474()Fnamed getPlayerVelocityZLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityZ()F
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector official eLvv;e()Dintermediary method_11475Lnet/minecraft/class_2664;method_11475()Dnamed getXLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getX()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector official fLvv;f()Dintermediary method_11477Lnet/minecraft/class_2664;method_11477()Dnamed getYLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getY()D
-
getZ
public double getZ()- Mappings:
Namespace Name Mixin selector official gLvv;g()Dintermediary method_11478Lnet/minecraft/class_2664;method_11478()Dnamed getZLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getZ()D
-
getRadius
public float getRadius()- Mappings:
Namespace Name Mixin selector official hLvv;h()Fintermediary method_11476Lnet/minecraft/class_2664;method_11476()Fnamed getRadiusLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getRadius()F
-
getAffectedBlocks
- Mappings:
Namespace Name Mixin selector official iLvv;i()Ljava/util/List;intermediary method_11479Lnet/minecraft/class_2664;method_11479()Ljava/util/List;named getAffectedBlocksLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getAffectedBlocks()Ljava/util/List;
-