java.lang.Object
net.neoforged.bus.ListenerList
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidReturns a full list of all listeners for all priority levels.getPhaseListeners(EventPriority phase) voidregister(EventPriority priority, EventListener listener) protected booleanvoidunregister(EventListener listener)
-
Method Details
-
getListeners
Returns a full list of all listeners for all priority levels. Including all parent listeners.List is returned in proper priority order.
Automatically rebuilds the internal Array cache if its information is out of date.
- Returns:
- a full list of all listeners for all priority levels
-
getPhaseListeners
-
shouldRebuild
protected boolean shouldRebuild() -
forceRebuild
protected void forceRebuild() -
register
-
unregister
-