@@ -0,0 +1,1724 @@
+package com.github.niwaniwa.we.core.util;%0A%0Aimport com.github.niwaniwa.we.core.WhiteEggCore;%0A%0Aimport java.lang.reflect.InvocationTargetException;%0A%0A/**%0A * %E5%BF%85%E8%A6%81%E3%81%AAJarFile%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%0A *%0A * @author mmott%0A */%0Apublic class Reflection %7B%0A%0A    private static final String nmsPackage = %22net.minecraft.server.%22;%0A    private static final String cbPackage = %22org.bukkit.craftbukkit.%22;%0A    private static final String version = WhiteEggCore.version.getCraftBukkitVersion();%0A%0A    private Reflection() %7B%0A    %7D%0A%0A    public static Class%3C?%3E getNMSClass(String className) %7B%0A        Class%3C?%3E clazz = null;%0A        try %7B%0A            clazz = Class.forName(String.format(%22%25s%25s.%25s%22, nmsPackage, version, className));%0A        %7D catch (ClassNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return clazz;%0A    %7D%0A%0A    public static Class%3C?%3E getCBClass(String className) %7B%0A        Class%3C?%3E clazz = null;%0A        try %7B%0A            clazz = Class.forName(String.format(%22%25s%25s.%25s%22, cbPackage, version, className));%0A        %7D catch (ClassNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return clazz;%0A    %7D%0A%0A    public static Object createPacketInstance(String packetClassName, Class%3C?%3E%5B%5D clazz, Object... args) %7B%0A        try %7B%0A            Class%3C?%3E packetClass = Class.forName(String.format(%22%25s%25s.%25s%22, nmsPackage, version, packetClassName));%0A            if(clazz == null %7C%7C clazz.length == 0)%7B return packetClass.newInstance(); %7D%0A            return packetClass.getConstructor(clazz).newInstance(args);%0A        %7D catch (ClassNotFoundException %7C InstantiationException %7C IllegalAccessException %7C InvocationTargetException %7C NoSuchMethodException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return null;%0A    %7D%0A%0A%7D%0A

Add reflection class