Class ClientboundExplodePacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundExplodePacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundExplodePacket(double centerX, double centerY, double centerZ, boolean hasKnockback, double playerKnockbackX, double playerKnockbackY, double playerKnockbackZ, @NonNull Particle explosionParticle, @NonNull Sound explosionSound) ClientboundExplodePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleandoubledoubledouble@NonNull Particle@NonNull SounddoubledoubledoubleinthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundExplodePacketwithCenterX(double centerX) @NonNull ClientboundExplodePacketwithCenterY(double centerY) @NonNull ClientboundExplodePacketwithCenterZ(double centerZ) @NonNull ClientboundExplodePacketwithExplosionParticle(@NonNull Particle explosionParticle) @NonNull ClientboundExplodePacketwithExplosionSound(@NonNull Sound explosionSound) @NonNull ClientboundExplodePacketwithHasKnockback(boolean hasKnockback) @NonNull ClientboundExplodePacketwithPlayerKnockbackX(double playerKnockbackX) @NonNull ClientboundExplodePacketwithPlayerKnockbackY(double playerKnockbackY) @NonNull ClientboundExplodePacketwithPlayerKnockbackZ(double playerKnockbackZ) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundExplodePacket
-
ClientboundExplodePacket
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getCenterX
public double getCenterX() -
getCenterY
public double getCenterY() -
getCenterZ
public double getCenterZ() -
isHasKnockback
public boolean isHasKnockback() -
getPlayerKnockbackX
public double getPlayerKnockbackX() -
getPlayerKnockbackY
public double getPlayerKnockbackY() -
getPlayerKnockbackZ
public double getPlayerKnockbackZ() -
getExplosionParticle
-
getExplosionSound
-
equals
-
canEqual
-
hashCode
public int 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).
-
withHasKnockback
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerKnockbackX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerKnockbackY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerKnockbackZ
- 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).
-