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.static final Flag<TcpClientBootstrapInitializer.Factory> Custom TcpClientBootstrapInitializer implstatic final Flag<TcpClientChannelInitializer.Factory> Custom TcpClientChannelInitializer implSession flag where the host address is stored.Session flag where the port is stored.Session flag for determining whether to encrypt the connection.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<GameProfile> Session flag where the userGameProfileis stored.Session flag for determining if an automatic response should be sent to the ClientboundSelectKnownPacks.static final Flag<TcpServerBootstrapInitializer.Factory> Custom TcpServerBootstrapInitializer implstatic final Flag<TcpServerChannelInitializer.Factory> Custom TcpServerChannelInitializer implstatic final StringSession 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<SessionService> Session flag for providing a customSessionServiceinstance.Session flag for determining whether to authenticate users with the session service.static final StringThe SRV Record prefix used by Minecraft.static final io.netty.channel.WriteBufferWaterMark -
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
-
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
-
FOLLOW_TRANSFERS
-
CLIENT_HOST
-
CLIENT_PORT
-
ENCRYPT_CONNECTION
-
SHOULD_AUTHENTICATE
-
ACCEPT_TRANSFERS_KEY
-
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
-
SERVER_CHANNEL_INITIALIZER
Custom TcpServerChannelInitializer impl -
SERVER_BOOTSTRAP_INITIALIZER
Custom TcpServerBootstrapInitializer impl -
CLIENT_CHANNEL_INITIALIZER
Custom TcpClientChannelInitializer impl -
CLIENT_BOOTSTRAP_INITIALIZER
Custom TcpClientBootstrapInitializer impl -
SERVER_COMPRESSION_THRESHOLD
-
PACKET_HEADER
The packet header used by Minecraft. -
SRV_RECORD_PREFIX
-
SERVER_CLOSING_MESSAGE
- See Also:
-
WRITE_BUFFER_WATER_MARK
public static final io.netty.channel.WriteBufferWaterMark WRITE_BUFFER_WATER_MARK
-