PacketHandler

class PacketHandler(val player: Player) : ChannelDuplexHandler

Netty ChannelDuplexHandler that intercepts inbound and outbound packets for a player.

Applies transformers, fires PacketEvent handlers, and supports latency/packet-loss simulation.

Constructors

Link copied to clipboard
constructor(player: Player)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val player: Player

The player this handler is attached to.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun bind(ctx: ChannelHandlerContext?, localAddress: SocketAddress?, promise: ChannelPromise?)
Link copied to clipboard
open fun channelActive(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelInactive(ctx: ChannelHandlerContext?)
Link copied to clipboard
open override fun channelRead(ctx: ChannelHandlerContext, msg: Any)
Link copied to clipboard
open fun channelReadComplete(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelRegistered(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelUnregistered(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun channelWritabilityChanged(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun close(ctx: ChannelHandlerContext?, promise: ChannelPromise?)
Link copied to clipboard
open fun connect(ctx: ChannelHandlerContext?, remoteAddress: SocketAddress?, localAddress: SocketAddress?, promise: ChannelPromise?)
Link copied to clipboard
open fun deregister(ctx: ChannelHandlerContext?, promise: ChannelPromise?)
Link copied to clipboard
open fun disconnect(ctx: ChannelHandlerContext?, promise: ChannelPromise?)
Link copied to clipboard
open fun exceptionCaught(ctx: ChannelHandlerContext?, cause: Throwable?)
Link copied to clipboard
open fun flush(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun handlerAdded(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun handlerRemoved(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun read(ctx: ChannelHandlerContext?)
Link copied to clipboard
open fun userEventTriggered(ctx: ChannelHandlerContext?, evt: Any?)
Link copied to clipboard
open override fun write(ctx: ChannelHandlerContext, msg: Any, promise: ChannelPromise)