public static boolean isOnScreen(final Entity e) {
		if (e instanceof WidgetChild) {
			return ((WidgetChild) e).visible();
		} else {
			Rectangle loc = screen;
			if (Widgets.get(548).validate()) {
				final Widget w2 = ActionBar.BarWidgets.get();
				if (w2 != null && w2.validate()) {
					final Rectangle rect = Widgets.get(548, 5).getBoundingRectangle();
					final WidgetChild wc1 = w2.getChild(2);
					final WidgetChild wc2 = w2.getChild(4);
					if (wc1.visible()) {
						rect.height -= wc1.getBoundingRectangle().height;
					} else if (wc2.visible()) {
						rect.height -= wc2.getBoundingRectangle().height;
					}
					loc = rect;
				}
			}
			return loc.contains(e.getCentralPoint()) && e.isOnScreen();
		}
	}