protected void onEvent(Entity e) {
		if (method == null) {
			Class<?> cls = e.getClass();
			while (true) {
				if (cls == Entity.class) return;
				try {
					Method m = cls.getDeclaredMethod(methodName);
					m.setAccessible(true);
					m.invoke(e);
					return;
				} catch (NoSuchMethodException e1) {
					cls = cls.getSuperclass();
					continue;
				} catch (Exception e1) {App.getApp().handle(e1);}
			}
		} else {
			try {
				method.invoke(e);
			} catch (Exception e1) {App.getApp().handle(e1);}
		}
	}