src/main/java/de/dosmike/sponge/megamenus/api/IMenu.java
default void invalidate(Player player) {
        RenderManager.getRenderFor(this).stream()
                .filter(r->r.getViewers().contains(player))
                .findFirst().ifPresent(MenuRenderer::invalidate);
    }
/**
     * Invalidates this menu for the specified player in the currently opened MenuRenderer
     * through the RenderManager. Will cause the menu to redraw in the near future
     * (usually next tick).
     */
Invalidates this menu for the specified player in the currently opened MenuRenderer
through the RenderManager. Will cause the menu to redraw in the near future
(usually next tick).
Invalidates this menu for the specified player in the currently opened MenuRenderer through the RenderManager . Will cause the menu to redraw in the near future ( usually next tick ) .
default void invalidate(Player player) {
        RenderManager.getRenderFor(this).stream()
                .filter(r->r.getViewers().contains(player))
                .findFirst().ifPresent(MenuRenderer::invalidate);
    }
default void invalidate ( Player player ) { RenderManager . getRenderFor ( this ) . stream ( ) . filter ( r -> r . getViewers ( ) . contains ( player ) ) . findFirst ( ) . ifPresent ( MenuRenderer :: invalidate ) ; }
Invalidates this menu for the specified player in the currently opened MenuRenderer
 through the RenderManager.
Invalidates this menu for the specified player in the currently opened MenuRenderer through the RenderManager .