public static void setEntityNBT(org.bukkit.entity.Entity entity, NBTTagCompound nbt) {
		CraftEntity craft = ((CraftEntity) entity);
		Entity nms = craft.getHandle();
		Class<?> entityClass = nms.getClass();
		Method[] methods = entityClass.getMethods();
		for (Method method : methods) {
			if ((method.getName() == "a")
					&& (method.getParameterTypes().length == 1)
					&& (method.getParameterTypes()[0] == NBTTagCompound.class)) {
				try {
					method.setAccessible(true);
					method.invoke(nms, nbt);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
		craft.setHandle(nms);
	}