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>
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 aad
intermediary net/minecraft/class_2664
named net/minecraft/network/packet/s2c/play/ExplosionS2CPacket
  • Field Details

    • x

      private final double x
      Mappings:
      Namespace Name Mixin selector
      official a Laad;a:D
      intermediary field_12180 Lnet/minecraft/class_2664;field_12180:D
      named x Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;x:D
    • y

      private final double y
      Mappings:
      Namespace Name Mixin selector
      official b Laad;b:D
      intermediary field_12178 Lnet/minecraft/class_2664;field_12178:D
      named y Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;y:D
    • z

      private final double z
      Mappings:
      Namespace Name Mixin selector
      official c Laad;c:D
      intermediary field_12177 Lnet/minecraft/class_2664;field_12177:D
      named z Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;z:D
    • radius

      private final float radius
      Mappings:
      Namespace Name Mixin selector
      official d Laad;d:F
      intermediary field_12179 Lnet/minecraft/class_2664;field_12179:F
      named radius Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;radius:F
    • affectedBlocks

      private final List<BlockPos> affectedBlocks
      Mappings:
      Namespace Name Mixin selector
      official e Laad;e:Ljava/util/List;
      intermediary field_12181 Lnet/minecraft/class_2664;field_12181:Ljava/util/List;
      named affectedBlocks Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;affectedBlocks:Ljava/util/List;
    • playerVelocityX

      private final float playerVelocityX
      Mappings:
      Namespace Name Mixin selector
      official f Laad;f:F
      intermediary field_12176 Lnet/minecraft/class_2664;field_12176:F
      named playerVelocityX Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityX:F
    • playerVelocityY

      private final float playerVelocityY
      Mappings:
      Namespace Name Mixin selector
      official g Laad;g:F
      intermediary field_12183 Lnet/minecraft/class_2664;field_12183:F
      named playerVelocityY Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityY:F
    • playerVelocityZ

      private final float playerVelocityZ
      Mappings:
      Namespace Name Mixin selector
      official h Laad;h:F
      intermediary field_12182 Lnet/minecraft/class_2664;field_12182:F
      named playerVelocityZ Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityZ:F
    • particle

      private final ParticleEffect particle
      Mappings:
      Namespace Name Mixin selector
      official i Laad;i:Ljv;
      intermediary field_47515 Lnet/minecraft/class_2664;field_47515:Lnet/minecraft/class_2394;
      named particle Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;particle:Lnet/minecraft/particle/ParticleEffect;
    • emitterParticle

      private final ParticleEffect emitterParticle
      Mappings:
      Namespace Name Mixin selector
      official j Laad;j:Ljv;
      intermediary field_47516 Lnet/minecraft/class_2664;field_47516:Lnet/minecraft/class_2394;
      named emitterParticle Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;emitterParticle:Lnet/minecraft/particle/ParticleEffect;
    • destructionType

      private final Explosion.DestructionType destructionType
      Mappings:
      Namespace Name Mixin selector
      official k Laad;k:Lcth$a;
      intermediary field_47517 Lnet/minecraft/class_2664;field_47517:Lnet/minecraft/class_1927$class_4179;
      named destructionType Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
    • soundEvent

      private final SoundEvent soundEvent
      Mappings:
      Namespace Name Mixin selector
      official l Laad;l:Larr;
      intermediary field_47518 Lnet/minecraft/class_2664;field_47518:Lnet/minecraft/class_3414;
      named soundEvent Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;soundEvent:Lnet/minecraft/sound/SoundEvent;
  • 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, SoundEvent soundEvent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laad;<init>(DDDFLjava/util/List;Lelt;Lcth$a;Ljv;Ljv;Larr;)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_3414;)V
      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/sound/SoundEvent;)V
    • ExplosionS2CPacket

      public ExplosionS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laad;<init>(Lui;)V
      intermediary <init> Lnet/minecraft/class_2664;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • writeParticleEffect

      public void writeParticleEffect(PacketByteBuf buf, ParticleEffect particleEffect)
      Mappings:
      Namespace Name Mixin selector
      official a Laad;a(Lui;Ljv;)V
      intermediary method_55628 Lnet/minecraft/class_2664;method_55628(Lnet/minecraft/class_2540;Lnet/minecraft/class_2394;)V
      named writeParticleEffect Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;writeParticleEffect(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/particle/ParticleEffect;)V
    • readParticleEffect

      private <T extends ParticleEffect> T readParticleEffect(PacketByteBuf buf, ParticleType<T> particleType)
      Mappings:
      Namespace Name Mixin selector
      official a Laad;a(Lui;Ljw;)Ljv;
      intermediary method_55327 Lnet/minecraft/class_2664;method_55327(Lnet/minecraft/class_2540;Lnet/minecraft/class_2396;)Lnet/minecraft/class_2394;
      named readParticleEffect Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;readParticleEffect(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/particle/ParticleType;)Lnet/minecraft/particle/ParticleEffect;
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lxf;a(Lui;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Laad;a(Lza;)V
      intermediary method_11480 Lnet/minecraft/class_2664;method_11480(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getPlayerVelocityX

      public float getPlayerVelocityX()
      Mappings:
      Namespace Name Mixin selector
      official a Laad;a()F
      intermediary method_11472 Lnet/minecraft/class_2664;method_11472()F
      named getPlayerVelocityX Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityX()F
    • getPlayerVelocityY

      public float getPlayerVelocityY()
      Mappings:
      Namespace Name Mixin selector
      official d Laad;d()F
      intermediary method_11473 Lnet/minecraft/class_2664;method_11473()F
      named getPlayerVelocityY Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityY()F
    • getPlayerVelocityZ

      public float getPlayerVelocityZ()
      Mappings:
      Namespace Name Mixin selector
      official e Laad;e()F
      intermediary method_11474 Lnet/minecraft/class_2664;method_11474()F
      named getPlayerVelocityZ Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getPlayerVelocityZ()F
    • getX

      public double getX()
      Mappings:
      Namespace Name Mixin selector
      official f Laad;f()D
      intermediary method_11475 Lnet/minecraft/class_2664;method_11475()D
      named getX Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getX()D
    • getY

      public double getY()
      Mappings:
      Namespace Name Mixin selector
      official g Laad;g()D
      intermediary method_11477 Lnet/minecraft/class_2664;method_11477()D
      named getY Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getY()D
    • getZ

      public double getZ()
      Mappings:
      Namespace Name Mixin selector
      official h Laad;h()D
      intermediary method_11478 Lnet/minecraft/class_2664;method_11478()D
      named getZ Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getZ()D
    • getRadius

      public float getRadius()
      Mappings:
      Namespace Name Mixin selector
      official i Laad;i()F
      intermediary method_11476 Lnet/minecraft/class_2664;method_11476()F
      named getRadius Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getRadius()F
    • getAffectedBlocks

      public List<BlockPos> getAffectedBlocks()
      Mappings:
      Namespace Name Mixin selector
      official j Laad;j()Ljava/util/List;
      intermediary method_11479 Lnet/minecraft/class_2664;method_11479()Ljava/util/List;
      named getAffectedBlocks Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getAffectedBlocks()Ljava/util/List;
    • getDestructionType

      public Explosion.DestructionType getDestructionType()
      Mappings:
      Namespace Name Mixin selector
      official k Laad;k()Lcth$a;
      intermediary method_55328 Lnet/minecraft/class_2664;method_55328()Lnet/minecraft/class_1927$class_4179;
      named getDestructionType Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getDestructionType()Lnet/minecraft/world/explosion/Explosion$DestructionType;
    • getParticle

      public ParticleEffect getParticle()
      Mappings:
      Namespace Name Mixin selector
      official l Laad;l()Ljv;
      intermediary method_55329 Lnet/minecraft/class_2664;method_55329()Lnet/minecraft/class_2394;
      named getParticle Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getParticle()Lnet/minecraft/particle/ParticleEffect;
    • getEmitterParticle

      public ParticleEffect getEmitterParticle()
      Mappings:
      Namespace Name Mixin selector
      official m Laad;m()Ljv;
      intermediary method_55330 Lnet/minecraft/class_2664;method_55330()Lnet/minecraft/class_2394;
      named getEmitterParticle Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getEmitterParticle()Lnet/minecraft/particle/ParticleEffect;
    • getSoundEvent

      public SoundEvent getSoundEvent()
      Mappings:
      Namespace Name Mixin selector
      official n Laad;n()Larr;
      intermediary method_55331 Lnet/minecraft/class_2664;method_55331()Lnet/minecraft/class_3414;
      named getSoundEvent Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getSoundEvent()Lnet/minecraft/sound/SoundEvent;