getEncoder

fun <T : Packet> getEncoder(type: Class<T>): PacketCodec<T>?