Abstract Channeled Network Addon
public abstract class AbstractChanneledNetworkAddon<H> extends AbstractNetworkAddon<H> implements PacketSender
Content copied to clipboard
A network addon which is aware of the channels the other side may receive.
Parameters
<H>
the channel handler type
Functions
createPacket
Link copied to clipboard
abstract Packet<? extends Object> createPacket(Identifier channelName, PacketByteBuf buf)
Content copied to clipboard
getHandler
Link copied to clipboard
getReceivableChannels
Link copied to clipboard
getSendableChannels
Link copied to clipboard
handleDisconnect
Link copied to clipboard
final void handleDisconnect()
Content copied to clipboard
registerChannel
Link copied to clipboard
sendPacket
Link copied to clipboard
abstract void sendPacket(Packet<? extends Object> packet, @Nullable() GenericFutureListener<? extends Future<? extends Object>> callback)
Content copied to clipboard
void sendPacket(Packet<? extends Object> packet, GenericFutureListener<? extends Future<? extends Object>> callback)
Content copied to clipboard
void sendPacket(Identifier channel, PacketByteBuf buf, @Nullable() GenericFutureListener<? extends Future<? extends Object>> callback)
Content copied to clipboard
unregisterChannel
Link copied to clipboard
Properties
sendableChannels
Link copied to clipboard
Inheritors
Sources
jvm source
Link copied to clipboard