Class ClientboundGameProfilePacket

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

public class ClientboundGameProfilePacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundGameProfilePacket

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

      public ClientboundGameProfilePacket(@NonNull @NonNull GameProfile profile, boolean strictErrorHandling)
  • Method Details

    • serialize

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

      public boolean isPriority()
      Description copied from interface: Packet
      Gets whether the packet has handling priority. If the result is true, the packet will be handled immediately after being decoded.
      Specified by:
      isPriority in interface Packet
      Returns:
      Whether the packet has priority.
    • isTerminal

      public boolean isTerminal()
      Description copied from interface: Packet
      Returns whether the packet is terminal. If true, this should be the last packet sent inside a protocol state. Subsequently, Session.setAutoRead(boolean) should be disabled when a terminal packet is received, until the session has switched into a new state and is ready to receive more packets.
      Specified by:
      isTerminal in interface Packet
      Returns:
      Whether the packet is terminal.
    • getProfile

      @NonNull public @NonNull GameProfile getProfile()
    • isStrictErrorHandling

      public boolean isStrictErrorHandling()
    • 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
    • withProfile

      public @NonNull ClientboundGameProfilePacket withProfile(@NonNull @NonNull GameProfile profile)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withStrictErrorHandling

      public @NonNull ClientboundGameProfilePacket withStrictErrorHandling(boolean strictErrorHandling)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).