Class ClientboundExplodePacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundExplodePacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Explosion.BlockInteraction
private final Holder
<SoundEvent> private final float
private final float
private final float
private final ParticleOptions
private final float
private final ParticleOptions
static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundExplodePacket> private final double
private final double
private final double
-
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundExplodePacket
(double x, double y, double z, float power, List<BlockPos> toBlow, Vec3 knockback, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) private
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
float
getPower()
double
getX()
double
getY()
double
getZ()
void
handle
(ClientGamePacketListener handler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf buffer) 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, 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 x, double y, double z, float power, List<BlockPos> toBlow, @Nullable Vec3 knockback, Explosion.BlockInteraction blockInteraction, ParticleOptions smallExplosionParticles, ParticleOptions largeExplosionParticles, Holder<SoundEvent> explosionSound) -
ClientboundExplodePacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- 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
-