Made IPacketEncoder.encode take a field instance