java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundChatPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ServerboundChatPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ServerboundChatPacket

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

      public ServerboundChatPacket(@NonNull @NonNull String message, long timeStamp, long salt, byte @Nullable [] signature, int offset, BitSet acknowledgedMessages, byte checksum)
  • Method Details

    • serialize

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

      @NonNull public @NonNull String getMessage()
    • getTimeStamp

      public long getTimeStamp()
    • getSalt

      public long getSalt()
    • getSignature

      public byte @Nullable [] getSignature()
    • getOffset

      public int getOffset()
    • getAcknowledgedMessages

      public BitSet getAcknowledgedMessages()
    • getChecksum

      public byte getChecksum()
    • 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
    • withMessage

      public @NonNull ServerboundChatPacket withMessage(@NonNull @NonNull String message)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withTimeStamp

      public @NonNull ServerboundChatPacket withTimeStamp(long timeStamp)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSalt

      public @NonNull ServerboundChatPacket withSalt(long salt)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSignature

      public @NonNull ServerboundChatPacket withSignature(byte @Nullable [] signature)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withOffset

      public @NonNull ServerboundChatPacket withOffset(int offset)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAcknowledgedMessages

      public @NonNull ServerboundChatPacket withAcknowledgedMessages(BitSet acknowledgedMessages)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withChecksum

      public @NonNull ServerboundChatPacket withChecksum(byte checksum)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).