RemoteScreenService
Owns authenticated player transports and declarations under one adapter execution owner. Network callbacks only enqueue bounded bytes; handlers never run in messaging callbacks. Closing permanently rejects new players, schemas, and definitions before notifying listeners.
Functions
Returns the successful capability handshake for one current player connection.
Invalidates the current screen generation when Minecraft replaces or closes its native container. Subsequent messages still carry the retired session identity and cannot target a replacement screen.
Removes all queues and state belonging to one disconnected player.
Compatibility entry sharing the common definition and session path.
Consumes the definition and opens a screen only after successful peer negotiation. Pending openings close without evaluating content if replacement listeners retire the connection. Preparation failures terminate admitted handles before propagating.
Ends every screen owned by a plugin before that plugin can be unloaded. Rejected transition admission preserves registrations so a later retry can retire dependent screens.
Admits one exact plugin-owned schema for subsequent connections.