Package org.collebol.event
Class EventHandler
java.lang.Object
org.collebol.event.EventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallClientEvent(Class<? extends Event> eventClass) Returns the client event instance based on the provided event class.voidRegisters a client event listener by checking if the listener has implemented specific event handling methods.
-
Constructor Details
-
EventHandler
-
-
Method Details
-
registerClientEvent
Registers a client event listener by checking if the listener has implemented specific event handling methods.- Parameters:
event- The client listener to be registered.
-
callClientEvent
Returns the client event instance based on the provided event class.- Parameters:
eventClass- The class of the event to be returned.- Returns:
- The instance of the event if it matches one of the known client events, otherwise null.
-