public final class GuiEventHandler<E extends GuiElementEvent>
extends java.lang.Object
implements java.util.function.Consumer<E>
| Constructor and Description |
|---|
GuiEventHandler(java.lang.Class<? super E> eventClass,
java.util.function.Consumer<E> handlerAction) |
GuiEventHandler(java.lang.Class<? super E> eventClass,
GuiEventOrigin origin,
IGuiElement relative,
java.util.function.Consumer<E> handlerAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(E e) |
public GuiEventHandler(java.lang.Class<? super E> eventClass, java.util.function.Consumer<E> handlerAction)
public GuiEventHandler(java.lang.Class<? super E> eventClass, GuiEventOrigin origin, IGuiElement relative, java.util.function.Consumer<E> handlerAction)
public final void accept(E e)
accept in interface java.util.function.Consumer<E extends GuiElementEvent>