Repetitive Consumer For Loop
问题 I am using a library with a method where I call a method that takes an event class and a consumer to call when the event fires. This method returns a void. I need to call the method again in the consumer then in that consumer call it again etc. (a lot of times). How can I put this in a for loop to avoid typing out this method loads of times? Code: ShurikenBot.getInstance().getEventWaiter().waitForEvent(MessageReactionAddEvent.class, t -> t.getMessageId().equals(m.getId()) && event.getAuthor()