Class ClientboundExplodePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundExplodePacket
- All Implemented Interfaces:
Packet, MinecraftPacket
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClientboundExplodePacket(double centerX, double centerY, double centerZ, float radius, int blockCount, @Nullable org.cloudburstmc.math.vector.Vector3d playerKnockback, @NonNull Particle explosionParticle, @NonNull Sound explosionSound, @NonNull WeightedList<ClientboundExplodePacket.BlockParticleInfo> blockParticles, boolean playSound) ClientboundExplodePacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintdoubledoubledouble@NonNull Particle@NonNull Sound@Nullable org.cloudburstmc.math.vector.Vector3dfloatinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundExplodePacketwithBlockCount(int blockCount) @NonNull ClientboundExplodePacketwithBlockParticles(@NonNull WeightedList<ClientboundExplodePacket.BlockParticleInfo> blockParticles) @NonNull ClientboundExplodePacketwithCenterX(double centerX) @NonNull ClientboundExplodePacketwithCenterY(double centerY) @NonNull ClientboundExplodePacketwithCenterZ(double centerZ) @NonNull ClientboundExplodePacketwithExplosionParticle(@NonNull Particle explosionParticle) @NonNull ClientboundExplodePacketwithExplosionSound(@NonNull Sound explosionSound) @NonNull ClientboundExplodePacketwithPlayerKnockback(@Nullable org.cloudburstmc.math.vector.Vector3d playerKnockback) @NonNull ClientboundExplodePacketwithPlaySound(boolean playSound) @NonNull ClientboundExplodePacketwithRadius(float radius) Methods inherited from interface Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundExplodePacket
public ClientboundExplodePacket(io.netty.buffer.ByteBuf in) -
ClientboundExplodePacket
public ClientboundExplodePacket(double centerX, double centerY, double centerZ, float radius, int blockCount, @Nullable @Nullable org.cloudburstmc.math.vector.Vector3d playerKnockback, @NonNull @NonNull Particle explosionParticle, @NonNull @NonNull Sound explosionSound, @NonNull @NonNull WeightedList<ClientboundExplodePacket.BlockParticleInfo> blockParticles, boolean playSound)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getCenterX
public double getCenterX() -
getCenterY
public double getCenterY() -
getCenterZ
public double getCenterZ() -
getRadius
public float getRadius() -
getBlockCount
public int getBlockCount() -
getPlayerKnockback
@Nullable public @Nullable org.cloudburstmc.math.vector.Vector3d getPlayerKnockback() -
getExplosionParticle
-
getExplosionSound
-
getBlockParticles
@NonNull public @NonNull WeightedList<ClientboundExplodePacket.BlockParticleInfo> getBlockParticles() -
isPlaySound
public boolean isPlaySound() -
equals
-
canEqual
-
hashCode
-
toString
-
withCenterX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCenterY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withCenterZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRadius
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlockCount
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerKnockback
public @NonNull ClientboundExplodePacket withPlayerKnockback(@Nullable @Nullable org.cloudburstmc.math.vector.Vector3d playerKnockback) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExplosionParticle
public @NonNull ClientboundExplodePacket withExplosionParticle(@NonNull @NonNull Particle explosionParticle) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withExplosionSound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlockParticles
public @NonNull ClientboundExplodePacket withBlockParticles(@NonNull @NonNull WeightedList<ClientboundExplodePacket.BlockParticleInfo> blockParticles) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlaySound
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-