AbstractNetworkAddon

public abstract class AbstractNetworkAddon<H>

A network addon is a simple abstraction to hold information about a player's registered channels.

Parameters

<H>

the channel handler type

Functions

getHandler
Link copied to clipboard
@Nullable()
H getHandler(Identifier channel)
getReceivableChannels
Link copied to clipboard
Set<IdentifiergetReceivableChannels()
handleDisconnect
Link copied to clipboard
final void handleDisconnect()
registerChannel
Link copied to clipboard
boolean registerChannel(Identifier channelName, H handler)
unregisterChannel
Link copied to clipboard
H unregisterChannel(Identifier channelName)

Inheritors

AbstractChanneledNetworkAddon
Link copied to clipboard
ClientLoginNetworkAddon
Link copied to clipboard
ServerLoginNetworkAddon
Link copied to clipboard

Sources

jvm source
Link copied to clipboard