Class ClientboundExplodePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundExplodePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Explosion.BlockInteractionprivate final Holder<SoundEvent> private final floatprivate final floatprivate final floatprivate final ParticleOptionsprivate final floatprivate final ParticleOptionsstatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundExplodePacket> private final doubleprivate final doubleprivate final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundExplodePacket(double pX, double pY, double pZ, float pPower, List<BlockPos> pToBlow, Vec3 pKnockback, Explosion.BlockInteraction pBlockInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) privateClientboundExplodePacket(RegistryFriendlyByteBuf p_320217_) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatfloatgetPower()doublegetX()doublegetY()doublegetZ()voidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(RegistryFriendlyByteBuf p_319914_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
x
private final double x -
y
private final double y -
z
private final double z -
power
private final float power -
toBlow
-
knockbackX
private final float knockbackX -
knockbackY
private final float knockbackY -
knockbackZ
private final float knockbackZ -
smallExplosionParticles
-
largeExplosionParticles
-
blockInteraction
-
explosionSound
-
-
Constructor Details
-
ClientboundExplodePacket
public ClientboundExplodePacket(double pX, double pY, double pZ, float pPower, List<BlockPos> pToBlow, @Nullable Vec3 pKnockback, Explosion.BlockInteraction pBlockInteraction, ParticleOptions pSmallExplosionParticles, ParticleOptions pLargeExplosionParticles, Holder<SoundEvent> pExplosionSound) -
ClientboundExplodePacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getKnockbackX
public float getKnockbackX() -
getKnockbackY
public float getKnockbackY() -
getKnockbackZ
public float getKnockbackZ() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getPower
public float getPower() -
getToBlow
-
getBlockInteraction
-
getSmallExplosionParticles
-
getLargeExplosionParticles
-
getExplosionSound
-