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 abrintermediary net/minecraft/class_2664named net/minecraft/network/packet/s2c/play/ExplosionS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec<RegistryByteBuf, ExplosionS2CPacket> private final Explosion.DestructionTypeprivate final ParticleEffectprivate final ParticleEffectprivate final floatprivate final floatprivate final floatprivate final floatprivate final RegistryEntry<SoundEvent> private final doubleprivate final doubleprivate final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionExplosionS2CPacket(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 TypeMethodDescriptionvoidapply(ClientPlayPacketListener clientPlayPacketListener) floatfloatfloatfloatdoublegetX()doublegetY()doublegetZ()private voidwrite(RegistryByteBuf 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, transitionsNetworkState
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLabr;a:Lxs;intermediary field_47925Lnet/minecraft/class_2664;field_47925:Lnet/minecraft/class_9139;named CODECLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
x
private final double x- Mappings:
Namespace Name Mixin selector official bLabr;b: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 cLabr;c: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 dLabr;d: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 eLabr;e: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 fLabr;f: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 gLabr;g: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 hLabr;h: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 iLabr;i:Fintermediary field_12182Lnet/minecraft/class_2664;field_12182:Fnamed playerVelocityZLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;playerVelocityZ:F
-
particle
- Mappings:
Namespace Name Mixin selector official jLabr;j:Lka;intermediary field_47515Lnet/minecraft/class_2664;field_47515:Lnet/minecraft/class_2394;named particleLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;particle:Lnet/minecraft/particle/ParticleEffect;
-
emitterParticle
- Mappings:
Namespace Name Mixin selector official kLabr;k:Lka;intermediary field_47516Lnet/minecraft/class_2664;field_47516:Lnet/minecraft/class_2394;named emitterParticleLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;emitterParticle:Lnet/minecraft/particle/ParticleEffect;
-
destructionType
- Mappings:
Namespace Name Mixin selector official lLabr;l:Lcwt$a;intermediary field_47517Lnet/minecraft/class_2664;field_47517:Lnet/minecraft/class_1927$class_4179;named destructionTypeLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;destructionType:Lnet/minecraft/world/explosion/Explosion$DestructionType;
-
soundEvent
- Mappings:
Namespace Name Mixin selector official mLabr;m:Lil;intermediary field_47518Lnet/minecraft/class_2664;field_47518:Lnet/minecraft/class_6880;named soundEventLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;soundEvent:Lnet/minecraft/registry/entry/RegistryEntry;
-
-
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 official <init>Labr;<init>(DDDFLjava/util/List;Lept;Lcwt$a;Lka;Lka;Lil;)Vintermediary <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;)Vnamed <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
-
ExplosionS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>Labr;<init>(Lvf;)Vintermediary <init>Lnet/minecraft/class_2664;<init>(Lnet/minecraft/class_9129;)Vnamed <init>Lnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official aLabr;a(Lvf;)Vintermediary method_55877Lnet/minecraft/class_2664;method_55877(Lnet/minecraft/class_9129;)Vnamed writeLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
-
getPacketId
- Specified by:
getPacketIdin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLyb;a()Lyd;intermediary method_55846Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;named getPacketIdLnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLabr;a(Laam;)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 bLabr;b()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 eLabr;e()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 fLabr;f()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 gLabr;g()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 hLabr;h()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 iLabr;i()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 jLabr;j()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 kLabr;k()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;
-
getDestructionType
- Mappings:
Namespace Name Mixin selector official lLabr;l()Lcwt$a;intermediary method_55328Lnet/minecraft/class_2664;method_55328()Lnet/minecraft/class_1927$class_4179;named getDestructionTypeLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getDestructionType()Lnet/minecraft/world/explosion/Explosion$DestructionType;
-
getParticle
- Mappings:
Namespace Name Mixin selector official mLabr;m()Lka;intermediary method_55329Lnet/minecraft/class_2664;method_55329()Lnet/minecraft/class_2394;named getParticleLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getParticle()Lnet/minecraft/particle/ParticleEffect;
-
getEmitterParticle
- Mappings:
Namespace Name Mixin selector official nLabr;n()Lka;intermediary method_55330Lnet/minecraft/class_2664;method_55330()Lnet/minecraft/class_2394;named getEmitterParticleLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getEmitterParticle()Lnet/minecraft/particle/ParticleEffect;
-
getSoundEvent
- Mappings:
Namespace Name Mixin selector official oLabr;o()Lil;intermediary method_55331Lnet/minecraft/class_2664;method_55331()Lnet/minecraft/class_6880;named getSoundEventLnet/minecraft/network/packet/s2c/play/ExplosionS2CPacket;getSoundEvent()Lnet/minecraft/registry/entry/RegistryEntry;
-