@Override
    public boolean mouseScrolled(double x, double y, double scrollX, double scrollY) {
        boolean consumed = super.mouseScrolled(x, y, scrollX, scrollY);
        return operateOnZOrderedSubtree(new Point((int) x, (int) y), (n, p, c) -> n.mouseScrolled(p, scrollX, scrollY, c), consumed);
    }
Base Screen class that implements the UI Node system. This is for UIs that do not have containers.
core/src/main/java/mrtjp/projectred/redui/RedUIScreen.java