Class MinecraftConstants
java.lang.Object
org.geysermc.mcprotocollib.protocol.MinecraftConstants
Class containing various constants for Minecraft sessions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSession flag for determining whether to accept transferred connections.Session flag where the user's access token is stored.Session flag for whether to automatically send a keep alive packet.Session flag for determining whether to create a new TcpClientSession when the Java server sends a ClientboundTransferPacket.static final PacketHeaderThe packet header used by Minecraft.Session flag for storing the current ping time.static final Flag<com.github.steveice10.mc.auth.data.GameProfile>Session flag where the userGameProfileis stored.Session flag for determining if an automatic response should be sent to the ClientboundSelectKnownPacks.Session flag for determining the packet compression threshold.static final Flag<ServerInfoBuilder>Session flag for providing a custom server info response builder.static final Flag<ServerInfoHandler>Session flag for providing a custom server info response handler.static final Flag<ServerLoginHandler>Session flag for providing a custom server login handler.static final Flag<ServerPingTimeHandler>Session flag for providing a custom ping time response handler.static final Flag<com.github.steveice10.mc.auth.service.SessionService>Session flag for providing a customSessionServiceinstance.static final StringThe SRV Record prefix used by Minecraft.Session flag for determining whether to verify users. -
Method Summary
-
Field Details
-
PROFILE_KEY
Session flag where the userGameProfileis stored. -
SESSION_SERVICE_KEY
Session flag for providing a customSessionServiceinstance. -
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. -
ACCESS_TOKEN_KEY
Session flag where the user's access token is stored. Client only. -
SERVER_INFO_HANDLER_KEY
Session flag for providing a custom server info response handler. Client only. -
SERVER_PING_TIME_HANDLER_KEY
Session flag for providing a custom ping time response handler. Client only. -
SEND_BLANK_KNOWN_PACKS_RESPONSE
Session flag for determining if an automatic response should be sent to the ClientboundSelectKnownPacks. -
FOLLOW_TRANFERS
Session flag for determining whether to create a new TcpClientSession when the Java server sends a ClientboundTransferPacket. -
VERIFY_USERS_KEY
Session flag for determining whether to verify users. Server only. -
ACCEPT_TRANSFERS_KEY
Session flag for determining whether to accept transferred connections. Server only. -
SERVER_INFO_BUILDER_KEY
Session flag for providing a custom server info response builder. Server only. -
SERVER_LOGIN_HANDLER_KEY
Session flag for providing a custom server login handler. Server only. -
PING_KEY
Session flag for storing the current ping time. Server only. -
SERVER_COMPRESSION_THRESHOLD
Session flag for determining the packet compression threshold. Server only. -
PACKET_HEADER
The packet header used by Minecraft. -
SRV_RECORD_PREFIX
The SRV Record prefix used by Minecraft.- See Also:
-