Class BungeePipelineInjector.BungeeChannelDuplexHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
me.neznamy.tab.platforms.bungeecord.BungeePipelineInjector.BungeeChannelDuplexHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,io.netty.channel.ChannelOutboundHandler
- Direct Known Subclasses:
BungeePipelineInjector.DeserializableBungeeChannelDuplexHandler
- Enclosing class:
- BungeePipelineInjector
public class BungeePipelineInjector.BungeeChannelDuplexHandler
extends io.netty.channel.ChannelDuplexHandler
Custom channel duplex handler override
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final me.neznamy.tab.api.TabPlayerInjected player -
Constructor Summary
ConstructorsConstructorDescriptionBungeeChannelDuplexHandler(me.neznamy.tab.api.TabPlayer player) Constructs new instance with given player -
Method Summary
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
player
protected final me.neznamy.tab.api.TabPlayer playerInjected player
-
-
Constructor Details
-
BungeeChannelDuplexHandler
public BungeeChannelDuplexHandler(me.neznamy.tab.api.TabPlayer player) Constructs new instance with given player- Parameters:
player- player to inject
-
-
Method Details
-
write
public void write(io.netty.channel.ChannelHandlerContext context, Object packet, io.netty.channel.ChannelPromise channelPromise) - Specified by:
writein interfaceio.netty.channel.ChannelOutboundHandler- Overrides:
writein classio.netty.channel.ChannelDuplexHandler
-