public static Packet populatePacket(PacketYAFM packet) { byte[] d = packet.populate(); Packet250CustomPayload p = new Packet250CustomPayload(); p.channel = Reference.MOD_CHANNEL; p.data = d; p.length = d.length; p.isChunkDataPacket = packet.isChunkDataPacket; return p; }
public static PacketYAFM reconstructPacket(Packet250CustomPayload packet) { return PacketYAFM.reconstruct(packet.data); }