类 HandlerList<E extends Event>
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.event.HandlerList<E>
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceHandlerList.ErrorCatch
-
字段概要
字段 修饰符和类型 字段 说明 static HandlerList.ErrorCatchPRINTstatic HandlerList.ErrorCatchTHROW
-
构造器概要
构造器 构造器 说明 HandlerList()
-
方法概要
修饰符和类型 方法 说明 voidclear()voidforEach(Consumer<EventHandler<E>> c)static HandlerList.ErrorCatchgetDefaultErrorCatch()HandlerList.ErrorCatchgetErrorCatch()HandlerList.ErrorCatchgetErrorCatchRunnable()voidpost(E event)voidregister(EventHandler<E> handler)static voidsetDefaultErrorCatch(HandlerList.ErrorCatch defaultErrorCatch)voidsetErrorCatch(HandlerList.ErrorCatch errorCatch)voidunregister(EventHandler<E> handler)
-
-
-
字段详细资料
-
THROW
public static final HandlerList.ErrorCatch THROW
-
PRINT
public static final HandlerList.ErrorCatch PRINT
-
-
方法详细资料
-
getDefaultErrorCatch
public static HandlerList.ErrorCatch getDefaultErrorCatch()
-
getErrorCatch
public HandlerList.ErrorCatch getErrorCatch()
-
setDefaultErrorCatch
public static void setDefaultErrorCatch(HandlerList.ErrorCatch defaultErrorCatch)
-
setErrorCatch
public void setErrorCatch(HandlerList.ErrorCatch errorCatch)
-
getErrorCatchRunnable
@NotNull public final HandlerList.ErrorCatch getErrorCatchRunnable()
-
forEach
public void forEach(Consumer<EventHandler<E>> c)
-
register
public void register(@NotNull EventHandler<E> handler)
-
unregister
public void unregister(@NotNull EventHandler<E> handler)
-
post
public void post(E event)
-
clear
public void clear()
-
-