Interface Event<E>
- All Known Implementing Classes:
EventImpl
public interface Event<E>
-
Method Summary
Modifier and TypeMethodDescriptionvoidWhen using this method, you can unsubscribe to this event.voidPermanently Registered listeners.voidunsubscribe(Object subscriber, String modId)
-
Method Details
-
subscribe
Permanently Registered listeners.- Parameters:
modId- - the mod id.listener- - the listener.
-
subscribe
When using this method, you can unsubscribe to this event.- Parameters:
subscriber- - the subscribing object, used as the key for unsubscribing.modId- - the mod id.listener- - the listener.
-
unsubscribe
- Parameters:
subscriber- - the subscribing object, used as the key for unsubscribing.modId- - the mod id.- Throws:
ConcurrentModificationException
-