Class MinecraftConstants
java.lang.Object
com.github.steveice10.mc.protocol.MinecraftConstants
Class containing various constants for Minecraft sessions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSession flag where the user's access token is stored.static final StringSession flag for whether to automatically send a keep alive packet.static final PacketHeaderThe packet header used by Minecraft.static final StringSession flag for storing the current ping time.static final StringSession flag where the userGameProfileis stored.static final StringSession flag for determining the packet compression threshold.static final StringSession flag for providing a custom server info response builder.static final StringSession flag for providing a custom server info response handler.static final StringSession flag for providing a custom server login handler.static final StringSession flag for providing a custom ping time response handler.static final StringSession flag for providing a customSessionServiceinstance.static final StringThe SRV Record prefix used by Minecraft.static final StringSession flag for determining whether to verify users. -
Method Summary
-
Field Details
-
PROFILE_KEY
Session flag where the userGameProfileis stored.- See Also:
-
SESSION_SERVICE_KEY
Session flag for providing a customSessionServiceinstance.- See Also:
-
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
Session flag where the user's access token is stored. Client only.- See Also:
-
SERVER_INFO_HANDLER_KEY
Session flag for providing a custom server info response handler. Client only.- See Also:
-
SERVER_PING_TIME_HANDLER_KEY
Session flag for providing a custom ping time response handler. Client only.- See Also:
-
VERIFY_USERS_KEY
Session flag for determining whether to verify users. Server only.- See Also:
-
SERVER_INFO_BUILDER_KEY
Session flag for providing a custom server info response builder. Server only.- See Also:
-
SERVER_LOGIN_HANDLER_KEY
Session flag for providing a custom server login handler. Server only.- See Also:
-
PING_KEY
Session flag for storing the current ping time. Server only.- See Also:
-
SERVER_COMPRESSION_THRESHOLD
Session flag for determining the packet compression threshold. Server only.- See Also:
-
PACKET_HEADER
The packet header used by Minecraft. -
SRV_RECORD_PREFIX
The SRV Record prefix used by Minecraft.- See Also:
-