Class ClientboundContainerSetDataPacket

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

public class ClientboundContainerSetDataPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundContainerSetDataPacket

      public ClientboundContainerSetDataPacket(int containerId, ContainerProperty rawProperty, int value)
    • ClientboundContainerSetDataPacket

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

      public ClientboundContainerSetDataPacket(int containerId, int rawProperty, int value)
  • Method Details

    • serialize

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

      public int getContainerId()
    • getRawProperty

      public int getRawProperty()
    • getValue

      public int getValue()
    • 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
    • withContainerId

      public @NonNull ClientboundContainerSetDataPacket withContainerId(int containerId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withRawProperty

      public @NonNull ClientboundContainerSetDataPacket withRawProperty(int rawProperty)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withValue

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