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

    Fields
    Modifier and Type
    Field
    Description
    boolean
     
    org.bukkit.entity.Player
     
    com.github.retrooper.packetevents.protocol.player.User
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PacketEventsDecoder(com.github.retrooper.packetevents.protocol.player.User user)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer, List<Object> out)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
     
    void
    read(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf input, List<Object> out)
     
    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

      public PacketEventsDecoder(PacketEventsDecoder decoder)
  • 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 class io.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 interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • userEventTriggered

      public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object event) throws Exception
      Specified by:
      userEventTriggered in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception