java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundExplodePacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundExplodePacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundExplodePacket

      public ClientboundExplodePacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
    • ClientboundExplodePacket

      public ClientboundExplodePacket(double x, double y, double z, float radius, @NonNull @NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded, float pushX, float pushY, float pushZ, @NonNull @NonNull Particle smallExplosionParticles, @NonNull @NonNull Particle largeExplosionParticles, @NonNull @NonNull ExplosionInteraction blockInteraction, @NonNull @NonNull Sound explosionSound)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getRadius

      public float getRadius()
    • getExploded

      @NonNull public @NonNull List<org.cloudburstmc.math.vector.Vector3i> getExploded()
    • getPushX

      public float getPushX()
    • getPushY

      public float getPushY()
    • getPushZ

      public float getPushZ()
    • getSmallExplosionParticles

      @NonNull public @NonNull Particle getSmallExplosionParticles()
    • getLargeExplosionParticles

      @NonNull public @NonNull Particle getLargeExplosionParticles()
    • getBlockInteraction

      @NonNull public @NonNull ExplosionInteraction getBlockInteraction()
    • getExplosionSound

      @NonNull public @NonNull Sound getExplosionSound()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withX

      public @NonNull ClientboundExplodePacket withX(double x)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withY

      public @NonNull ClientboundExplodePacket withY(double y)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withZ

      public @NonNull ClientboundExplodePacket withZ(double z)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRadius

      public @NonNull ClientboundExplodePacket withRadius(float radius)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withExploded

      public @NonNull ClientboundExplodePacket withExploded(@NonNull @NonNull List<org.cloudburstmc.math.vector.Vector3i> exploded)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPushX

      public @NonNull ClientboundExplodePacket withPushX(float pushX)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPushY

      public @NonNull ClientboundExplodePacket withPushY(float pushY)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPushZ

      public @NonNull ClientboundExplodePacket withPushZ(float pushZ)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSmallExplosionParticles

      public @NonNull ClientboundExplodePacket withSmallExplosionParticles(@NonNull @NonNull Particle smallExplosionParticles)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLargeExplosionParticles

      public @NonNull ClientboundExplodePacket withLargeExplosionParticles(@NonNull @NonNull Particle largeExplosionParticles)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBlockInteraction

      public @NonNull ClientboundExplodePacket withBlockInteraction(@NonNull @NonNull ExplosionInteraction blockInteraction)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withExplosionSound

      public @NonNull ClientboundExplodePacket withExplosionSound(@NonNull @NonNull Sound explosionSound)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).