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 adn
-
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
Ladn;a:Lzn;
-
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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;j:Llg;
-
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
Ladn;k:Llg;
-
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
Ladn;l:Ldbs$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
Ladn;m:Lji;
-
-
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>
Ladn;<init>(DDDFLjava/util/List;Levt;Ldbs$a;Llg;Llg;Lji;)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>
Ladn;<init>(Lxa;)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
Ladn;a(Lxa;)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
Lzw;a()Lzy;
-
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
Ladn;a(Laci;)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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;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
Ladn;l()Ldbs$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
Ladn;m()Llg;
-
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
Ladn;n()Llg;
-
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
Ladn;o()Lji;
-