Class MinecraftConstants

java.lang.Object
com.github.steveice10.mc.protocol.MinecraftConstants

public final class MinecraftConstants extends Object
Class containing various constants for Minecraft sessions.
  • Field Details

    • PROFILE_KEY

      public static final String PROFILE_KEY
      Session flag where the user GameProfile is stored.
      See Also:
    • SESSION_SERVICE_KEY

      public static final String SESSION_SERVICE_KEY
      Session flag for providing a custom SessionService instance.
      See Also:
    • AUTOMATIC_KEEP_ALIVE_MANAGEMENT

      public static final String AUTOMATIC_KEEP_ALIVE_MANAGEMENT
      Session flag for whether to automatically send a keep alive packet.
      For servers: determines if the keep alive task is run.
      For clients: determines if MCProtocolLib automatically sends back a packet when the server sends their keep alive packet.
      See Also:
    • ACCESS_TOKEN_KEY

      public static final String ACCESS_TOKEN_KEY
      Session flag where the user's access token is stored. Client only.
      See Also:
    • SERVER_INFO_HANDLER_KEY

      public static final String SERVER_INFO_HANDLER_KEY
      Session flag for providing a custom server info response handler. Client only.
      See Also:
    • SERVER_PING_TIME_HANDLER_KEY

      public static final String SERVER_PING_TIME_HANDLER_KEY
      Session flag for providing a custom ping time response handler. Client only.
      See Also:
    • VERIFY_USERS_KEY

      public static final String VERIFY_USERS_KEY
      Session flag for determining whether to verify users. Server only.
      See Also:
    • SERVER_INFO_BUILDER_KEY

      public static final String SERVER_INFO_BUILDER_KEY
      Session flag for providing a custom server info response builder. Server only.
      See Also:
    • SERVER_LOGIN_HANDLER_KEY

      public static final String SERVER_LOGIN_HANDLER_KEY
      Session flag for providing a custom server login handler. Server only.
      See Also:
    • PING_KEY

      public static final String PING_KEY
      Session flag for storing the current ping time. Server only.
      See Also:
    • SERVER_COMPRESSION_THRESHOLD

      public static final String SERVER_COMPRESSION_THRESHOLD
      Session flag for determining the packet compression threshold. Server only.
      See Also:
    • PACKET_HEADER

      public static final PacketHeader PACKET_HEADER
      The packet header used by Minecraft.
    • SRV_RECORD_PREFIX

      public static final String SRV_RECORD_PREFIX
      The SRV Record prefix used by Minecraft.
      See Also: