Interface SessionPacketFactory<T extends Packet>

All Superinterfaces:
PacketFactory<T>

public interface SessionPacketFactory<T extends Packet> extends PacketFactory<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    construct(io.netty.buffer.ByteBuf buf)
    Constructs a new Packet.
    construct(io.netty.buffer.ByteBuf buf, Session channel)
     
  • Method Details

    • construct

      T construct(io.netty.buffer.ByteBuf buf, Session channel)
    • construct

      default T construct(io.netty.buffer.ByteBuf buf)
      Description copied from interface: PacketFactory
      Constructs a new Packet.
      Specified by:
      construct in interface PacketFactory<T extends Packet>
      Parameters:
      buf - the input buffer
      Returns:
      a new packet from the input