unregister
Unregisters all event handlers associated with the specified addon.
Parameters
addon
The addon for which to unregister event handlers.
Unregisters all methods annotated with EventSubscribe as event handlers in the specified listener with the associated addon.
Parameters
addon
The addon associated with the event listener.
listener
The object with event handlers to unregister.
abstract fun unregister(@NotNull addon: @NotNull Any, @NotNull handler: @NotNull EventHandler<out Any>)
Unregisters the specified event handler associated with the addon.
Parameters
addon
The addon associated with the event handler.
handler
The event handler to unregister.