Class ClientboundExplodePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundExplodePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Explosion.BlockInteraction
private final SoundEvent
private final float
private final float
private final float
private final ParticleOptions
private final float
private final ParticleOptions
private final double
private final double
private final double
-
Constructor Summary
ConstructorDescriptionClientboundExplodePacket
(double p_132115_, double p_132116_, double p_132117_, float p_132118_, List<BlockPos> p_132119_, Vec3 p_132120_, Explosion.BlockInteraction p_312296_, ParticleOptions p_312499_, ParticleOptions p_312203_, SoundEvent p_312511_) ClientboundExplodePacket
(FriendlyByteBuf p_178845_) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
float
getPower()
double
getX()
double
getY()
double
getZ()
void
handle
(ClientGamePacketListener p_132126_) private <T extends ParticleOptions>
TreadParticle
(FriendlyByteBuf p_312342_, ParticleType<T> p_312162_) void
write
(FriendlyByteBuf p_132129_) void
writeParticle
(FriendlyByteBuf p_315020_, ParticleOptions p_315019_) 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.protocol.Packet
isSkippable, nextProtocol
-
Field Details
-
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 p_132115_, double p_132116_, double p_132117_, float p_132118_, List<BlockPos> p_132119_, @Nullable Vec3 p_132120_, Explosion.BlockInteraction p_312296_, ParticleOptions p_312499_, ParticleOptions p_312203_, SoundEvent p_312511_) -
ClientboundExplodePacket
-
-
Method Details
-
writeParticle
-
readParticle
private <T extends ParticleOptions> T readParticle(FriendlyByteBuf p_312342_, ParticleType<T> p_312162_) -
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in 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
-