Class ClientboundBlockEventPacket

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

public class ClientboundBlockEventPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundBlockEventPacket

      public ClientboundBlockEventPacket(io.netty.buffer.ByteBuf in)
    • ClientboundBlockEventPacket

      public ClientboundBlockEventPacket(int x, int y, int z, int rawType, int rawValue, int blockId)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out)
      Specified by:
      serialize in interface MinecraftPacket
    • getType

      public BlockValueType getType()
    • getValue

      public BlockValue getValue()
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • getRawType

      public int getRawType()
    • getRawValue

      public int getRawValue()
    • getBlockId

      public int getBlockId()
    • 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 ClientboundBlockEventPacket 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 ClientboundBlockEventPacket 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 ClientboundBlockEventPacket withZ(int z)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRawType

      public @NonNull ClientboundBlockEventPacket withRawType(int rawType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRawValue

      public @NonNull ClientboundBlockEventPacket withRawValue(int rawValue)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBlockId

      public @NonNull ClientboundBlockEventPacket withBlockId(int blockId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).