public static Entity createEntityFromNBT(NBTTagCompound var0, World var1) {
        Entity var2 = null;

        try {
            Class var3 = stringToClassMapping.get(var0.getString("id"));
            if (var3 != null) {
                var2 = (Entity) var3.getConstructor(new Class[]{World.class}).newInstance(new Object[]{var1});
            }
        } catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException var4) {
            var4.printStackTrace();
        }

        if (var2 != null) {
            var2.readFromNBT(var0);
        } else {
            System.out.println("Skipping Entity with id " + var0.getString("id"));
        }

        return var2;
    }