src/main/java/de/dosmike/sponge/megamenus/impl/RenderManager.java
public static void tickRendering() {
        //remove stubbed renders
        renders.removeIf(r->{
            if (!r.hasViewers()) {
                if (r.getRenderListener() != null)
                    r.getRenderListener().paused(r, r.getMenu());
                return true;
            } else return false;
        });
        for (MenuRenderer render : renders)
            render.think(animations);
        if (animations!=null)
            animations.finishTick();
        for (MenuRenderer render : renders)
            render.revalidate();
    }
/**
     * this method will invoke automatic refreshing for all menus with animated elements
     */
this method will invoke automatic refreshing for all menus with animated elements
this method will invoke automatic refreshing for all menus with animated elements
public static void tickRendering() {
        renders.removeIf(r->{
            if (!r.hasViewers()) {
                if (r.getRenderListener() != null)
                    r.getRenderListener().paused(r, r.getMenu());
                return true;
            } else return false;
        });
        for (MenuRenderer render : renders)
            render.think(animations);
        if (animations!=null)
            animations.finishTick();
        for (MenuRenderer render : renders)
            render.revalidate();
    }
public static void tickRendering ( ) { renders . removeIf ( r -> { if ( ! r . hasViewers ( ) ) { if ( r . getRenderListener ( ) != null ) r . getRenderListener ( ) . paused ( r , r . getMenu ( ) ) ; return true ; } else return false ; } ) ; for ( MenuRenderer render : renders ) render . think ( animations ) ; if ( animations != null ) animations . finishTick ( ) ; for ( MenuRenderer render : renders ) render . revalidate ( ) ; }
this method will invoke automatic refreshing for all menus with animated elements
this method will invoke automatic refreshing for all menus with animated elements
//remove stubbed renders