Class WrapperPlayServerPlayerChatHeader

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayServerPlayerChatHeader>
com.github.retrooper.packetevents.wrapper.play.server.WrapperPlayServerPlayerChatHeader

public class WrapperPlayServerPlayerChatHeader extends PacketWrapper<WrapperPlayServerPlayerChatHeader>
  • Constructor Details

    • WrapperPlayServerPlayerChatHeader

      public WrapperPlayServerPlayerChatHeader(PacketSendEvent event)
    • WrapperPlayServerPlayerChatHeader

      public WrapperPlayServerPlayerChatHeader(byte @Nullable [] previousSignature, UUID playerUUID, byte[] signature, byte[] hash)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayServerPlayerChatHeader>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayServerPlayerChatHeader>
    • copy

      public void copy(WrapperPlayServerPlayerChatHeader wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayServerPlayerChatHeader>
    • getPreviousSignature

      public Optional<byte[]> getPreviousSignature()
      Get the previous message signature if exists.
      Returns:
      the previous message signature if exists.
    • setPreviousSignature

      public void setPreviousSignature(byte @Nullable [] previousSignature)
      Set the previous message signature.
      Parameters:
      previousSignature - the previous message signature.
    • getPlayerUUID

      public UUID getPlayerUUID()
      Get the UUID of the message sender.
      Returns:
      The UUID of the message sender.
    • setPlayerUUID

      public void setPlayerUUID(UUID playerUUID)
      Set the UUID of the message sender.
      Parameters:
      playerUUID - The UUID of the message sender.
    • getSignature

      public byte[] getSignature()
      Get the signature of the current message.
      Returns:
      The signature of the current message.
    • setSignature

      public void setSignature(byte[] signature)
      Set the signature of the current message.
      Parameters:
      signature - The signature of the current message.
    • getHash

      public byte[] getHash()
      Get the hash of the chat message.
      Returns:
      the hash of the chat message.
    • setHash

      public void setHash(byte[] hash)
      Set message digest.
      Parameters:
      hash - the hash of the chat message.