Class ClientboundBlockDestructionPacket

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

public class ClientboundBlockDestructionPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundBlockDestructionPacket

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

      public ClientboundBlockDestructionPacket(int breakerEntityId, int x, int y, int z, @NonNull @NonNull BlockBreakStage stage)
  • Method Details

    • serialize

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

      public int getBreakerEntityId()
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • getStage

      @NonNull public @NonNull BlockBreakStage getStage()
    • 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
    • withBreakerEntityId

      public @NonNull ClientboundBlockDestructionPacket withBreakerEntityId(int breakerEntityId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withX

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

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

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

      public @NonNull ClientboundBlockDestructionPacket withStage(@NonNull @NonNull BlockBreakStage stage)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).