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, @NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position, @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()
    • getPosition

      @NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getPosition()
    • 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).
    • withPosition

      public @NonNull ClientboundBlockDestructionPacket withPosition(@NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position)
      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).