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 named net/minecraft/network/packet/s2c/play/ExplosionS2CPacket
intermediary net/minecraft/class_2664
official acy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, ExplosionS2CPacket> private final Explosion.DestructionType
private final ParticleEffect
private final ParticleEffect
private final float
private final float
private final float
private final float
private final RegistryEntry
<SoundEvent> private final double
private final double
private final double
-
Constructor Summary
ModifierConstructorDescriptionExplosionS2CPacket
(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable Vec3d playerVelocity, Explosion.DestructionType destructionType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> registryEntry) private
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) float
float
float
float
double
getX()
double
getY()
double
getZ()
private void
write
(RegistryByteBuf 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.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_47925
Lnet/minecraft/class_2664;field_47925:Lnet/minecraft/class_9139;
official a
Lacy;a:Lyw;
-
x
private final double x- Mappings:
Namespace Name Mixin selector named x
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;x:D
intermediary field_12180
Lnet/minecraft/class_2664;field_12180:D
official b
Lacy;b:D
-
y
private final double y- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;y:D
intermediary field_12178
Lnet/minecraft/class_2664;field_12178:D
official c
Lacy;c:D
-
z
private final double z- Mappings:
Namespace Name Mixin selector named z
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;z:D
intermediary field_12177
Lnet/minecraft/class_2664;field_12177:D
official d
Lacy;d:D
-
radius
private final float radius- Mappings:
Namespace Name Mixin selector named radius
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;radius:F
intermediary field_12179
Lnet/minecraft/class_2664;field_12179:F
official e
Lacy;e:F
-
affectedBlocks
- Mappings:
Namespace Name Mixin selector named affectedBlocks
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;affectedBlocks:Ljava/util/List;
intermediary field_12181
Lnet/minecraft/class_2664;field_12181:Ljava/util/List;
official f
Lacy;f:Ljava/util/List;
-
playerVelocityX
private final float playerVelocityX- Mappings:
Namespace Name Mixin selector named playerVelocityX
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityX:F
intermediary field_12176
Lnet/minecraft/class_2664;field_12176:F
official g
Lacy;g:F
-
playerVelocityY
private final float playerVelocityY- Mappings:
Namespace Name Mixin selector named playerVelocityY
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityY:F
intermediary field_12183
Lnet/minecraft/class_2664;field_12183:F
official h
Lacy;h:F
-
playerVelocityZ
private final float playerVelocityZ- Mappings:
Namespace Name Mixin selector named playerVelocityZ
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityZ:F
intermediary field_12182
Lnet/minecraft/class_2664;field_12182:F
official i
Lacy;i:F
-
particle
- Mappings:
Namespace Name Mixin selector named particle
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;particle:Lnet/minecraft/particle/ParticleEffect;
intermediary field_47515
Lnet/minecraft/class_2664;field_47515:Lnet/minecraft/class_2394;
official j
Lacy;j:Llk;
-
emitterParticle
- Mappings:
Namespace Name Mixin selector named emitterParticle
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;emitterParticle:Lnet/minecraft/particle/ParticleEffect;
intermediary field_47516
Lnet/minecraft/class_2664;field_47516:Lnet/minecraft/class_2394;
official k
Lacy;k:Llk;
-
destructionType
- Mappings:
Namespace Name Mixin selector named destructionType
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
intermediary field_47517
Lnet/minecraft/class_2664;field_47517:Lnet/minecraft/class_1927$class_4179;
official l
Lacy;l:Ldcm$a;
-
soundEvent
- Mappings:
Namespace Name Mixin selector named soundEvent
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;soundEvent:Lnet/minecraft/registry/entry/RegistryEntry;
intermediary field_47518
Lnet/minecraft/class_2664;field_47518:Lnet/minecraft/class_6880;
official m
Lacy;m:Ljm;
-
-
Constructor Details
-
ExplosionS2CPacket
public ExplosionS2CPacket(double x, double y, double z, float radius, List<BlockPos> affectedBlocks, @Nullable @Nullable Vec3d playerVelocity, Explosion.DestructionType destructionType, ParticleEffect particle, ParticleEffect emitterParticle, RegistryEntry<SoundEvent> registryEntry) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(DDDFLjava/util/List;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/world/explosion/Explosion$DestructionType;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/particle/ParticleEffect;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary <init>
Lnet/minecraft/class_2664;<init>(DDDFLjava/util/List;Lnet/minecraft/class_243;Lnet/minecraft/class_1927$class_4179;Lnet/minecraft/class_2394;Lnet/minecraft/class_2394;Lnet/minecraft/class_6880;)V
official <init>
Lacy;<init>(DDDFLjava/util/List;Leww;Ldcm$a;Llk;Llk;Ljm;)V
-
ExplosionS2CPacket
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary <init>
Lnet/minecraft/class_2664;<init>(Lnet/minecraft/class_9129;)V
official <init>
Lacy;<init>(Lwj;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
intermediary method_55877
Lnet/minecraft/class_2664;method_55877(Lnet/minecraft/class_9129;)V
official a
Lacy;a(Lwj;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
official a
Lzf;a()Lzh;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
intermediary method_11480
Lnet/minecraft/class_2664;method_11480(Lnet/minecraft/class_2602;)V
official a
Lacy;a(Labt;)V
-
getPlayerVelocityX
public float getPlayerVelocityX()- Mappings:
Namespace Name Mixin selector named getPlayerVelocityX
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityX()F
intermediary method_11472
Lnet/minecraft/class_2664;method_11472()F
official b
Lacy;b()F
-
getPlayerVelocityY
public float getPlayerVelocityY()- Mappings:
Namespace Name Mixin selector named getPlayerVelocityY
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityY()F
intermediary method_11473
Lnet/minecraft/class_2664;method_11473()F
official e
Lacy;e()F
-
getPlayerVelocityZ
public float getPlayerVelocityZ()- Mappings:
Namespace Name Mixin selector named getPlayerVelocityZ
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityZ()F
intermediary method_11474
Lnet/minecraft/class_2664;method_11474()F
official f
Lacy;f()F
-
getX
public double getX()- Mappings:
Namespace Name Mixin selector named getX
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getX()D
intermediary method_11475
Lnet/minecraft/class_2664;method_11475()D
official g
Lacy;g()D
-
getY
public double getY()- Mappings:
Namespace Name Mixin selector named getY
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getY()D
intermediary method_11477
Lnet/minecraft/class_2664;method_11477()D
official h
Lacy;h()D
-
getZ
public double getZ()- Mappings:
Namespace Name Mixin selector named getZ
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getZ()D
intermediary method_11478
Lnet/minecraft/class_2664;method_11478()D
official i
Lacy;i()D
-
getRadius
public float getRadius()- Mappings:
Namespace Name Mixin selector named getRadius
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getRadius()F
intermediary method_11476
Lnet/minecraft/class_2664;method_11476()F
official j
Lacy;j()F
-
getAffectedBlocks
- Mappings:
Namespace Name Mixin selector named getAffectedBlocks
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getAffectedBlocks()Ljava/util/List;
intermediary method_11479
Lnet/minecraft/class_2664;method_11479()Ljava/util/List;
official k
Lacy;k()Ljava/util/List;
-
getDestructionType
- Mappings:
Namespace Name Mixin selector named getDestructionType
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getDestructionType()Lnet/minecraft/world/explosion/Explosion$DestructionType;
intermediary method_55328
Lnet/minecraft/class_2664;method_55328()Lnet/minecraft/class_1927$class_4179;
official l
Lacy;l()Ldcm$a;
-
getParticle
- Mappings:
Namespace Name Mixin selector named getParticle
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getParticle()Lnet/minecraft/particle/ParticleEffect;
intermediary method_55329
Lnet/minecraft/class_2664;method_55329()Lnet/minecraft/class_2394;
official m
Lacy;m()Llk;
-
getEmitterParticle
- Mappings:
Namespace Name Mixin selector named getEmitterParticle
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getEmitterParticle()Lnet/minecraft/particle/ParticleEffect;
intermediary method_55330
Lnet/minecraft/class_2664;method_55330()Lnet/minecraft/class_2394;
official n
Lacy;n()Llk;
-
getSoundEvent
- Mappings:
Namespace Name Mixin selector named getSoundEvent
Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getSoundEvent()Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_55331
Lnet/minecraft/class_2664;method_55331()Lnet/minecraft/class_6880;
official o
Lacy;o()Ljm;
-