// Path: Journey of Legends/aginsun/journey/universal/utils/Utils.java
// public final class Utils 
// {
// 	public static final String modID = "journeyoflegends";
// 	public static final String Version = "0.0.2A";
// 	public static final String Name = "Journey of Legends: The Start";
// }	


import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import aginsun.journey.universal.utils.Utils;
            packet = values()[selector].clazz.newInstance();
        }
        catch (Exception e) {
            e.printStackTrace(System.err);
        }

        packet.readPopulate(dis);

        return packet;
    }

    public static PacketJoL buildPacket(PacketType type) {

        PacketJoL packet = null;

        try {
            packet = values()[type.ordinal()].clazz.newInstance();
        }
        catch (Exception e) {
            e.printStackTrace(System.err);
        }

        return packet;
    }

    public static Packet populatePacket(PacketJoL packetToK) {

        byte[] data = packetToK.populate();

        Packet250CustomPayload packet250 = new Packet250CustomPayload();
// Path: Journey of Legends/aginsun/journey/universal/utils/Utils.java
// public final class Utils 
// {
// 	public static final String modID = "journeyoflegends";
// 	public static final String Version = "0.0.2A";
// 	public static final String Name = "Journey of Legends: The Start";
// }	


// Path: Journey of Legends/aginsun/journey/universal/packets/PacketType.java
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import aginsun.journey.universal.utils.Utils;

            packet = values()[selector].clazz.newInstance();
        }
        catch (Exception e) {
            e.printStackTrace(System.err);
        }

        packet.readPopulate(dis);

        return packet;
    }

    public static PacketJoL buildPacket(PacketType type) {

        PacketJoL packet = null;

        try {
            packet = values()[type.ordinal()].clazz.newInstance();
        }
        catch (Exception e) {
            e.printStackTrace(System.err);
        }

        return packet;
    }

    public static Packet populatePacket(PacketJoL packetToK) {

        byte[] data = packetToK.populate();

        Packet250CustomPayload packet250 = new Packet250CustomPayload();
        packet250.channel = Utils.modID;