Class PacketEventsDecoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
io.github.retrooper.packetevents.injector.handlers.PacketEventsDecoder
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class PacketEventsDecoder
extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionboolean
org.bukkit.entity.Player
com.github.retrooper.packetevents.protocol.player.User
-
Constructor Summary
ConstructorDescriptionPacketEventsDecoder
(com.github.retrooper.packetevents.protocol.player.User user) PacketEventsDecoder
(PacketEventsDecoder decoder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, List<Object> out) void
exceptionCaught
(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) void
void
userEventTriggered
(io.netty.channel.ChannelHandlerContext ctx, Object event) Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
user
public com.github.retrooper.packetevents.protocol.player.User user -
player
public org.bukkit.entity.Player player -
hasBeenRelocated
public boolean hasBeenRelocated
-
-
Constructor Details
-
PacketEventsDecoder
public PacketEventsDecoder(com.github.retrooper.packetevents.protocol.player.User user) -
PacketEventsDecoder
-
-
Method Details
-
read
public void read(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf input, List<Object> out) throws Exception - Throws:
Exception
-
decode
public void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, List<Object> out) throws Exception - Specified by:
decode
in classio.netty.handler.codec.MessageToMessageDecoder<io.netty.buffer.ByteBuf>
- Throws:
Exception
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
userEventTriggered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event) throws Exception - Specified by:
userEventTriggered
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-