Class ClientboundHelloPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundHelloPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundHelloPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundHelloPacket

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

      public ClientboundHelloPacket(String serverId, PublicKey publicKey, byte[] challenge, boolean shouldAuthenticate)
  • Method Details

    • serialize

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

      public String getServerId()
    • getPublicKey

      public PublicKey getPublicKey()
    • getChallenge

      public byte[] getChallenge()
    • isShouldAuthenticate

      public boolean isShouldAuthenticate()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withServerId

      public ClientboundHelloPacket withServerId(String serverId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPublicKey

      public ClientboundHelloPacket withPublicKey(PublicKey publicKey)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withChallenge

      public ClientboundHelloPacket withChallenge(byte[] challenge)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShouldAuthenticate

      public ClientboundHelloPacket withShouldAuthenticate(boolean shouldAuthenticate)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).