Class CodecRegistry

java.lang.Object
com.zenith.network.codec.CodecRegistry

public class CodecRegistry extends Object
  • Constructor Details

    • CodecRegistry

      public CodecRegistry()
  • Method Details

    • register

      public void register(PacketHandlerCodec codec)
    • unregister

      public void unregister(PacketHandlerCodec codec)
    • getCodec

      public PacketHandlerCodec getCodec(String id)
    • getCodecIds

      public List<String> getCodecIds()
    • handleInbound

      public <P extends Packet, S extends Session> P handleInbound(@Nullable P packet, @NonNull S session)
    • handleOutgoing

      public <P extends Packet, S extends Session> P handleOutgoing(@Nullable P packet, @NonNull S session)
    • handlePostOutgoing

      public <P extends Packet, S extends Session> void handlePostOutgoing(@Nullable P packet, @NonNull S session)