Class ConnectionHandler.EventRef
- java.lang.Object
-
- page.codeberg.terratactician_expandoria.bots.ConnectionHandler.EventRef
-
- Enclosing class:
- ConnectionHandler
public static class ConnectionHandler.EventRef extends java.lang.Object
EventRef is a smart reference for a specific registered event. It can be used to unregister a specific event.
-
-
Constructor Summary
Constructors Constructor Description EventRef(Event.EventType event, ConnectionHandler.EventCallback callback)
Constructs an EventRef.
-
-
-
Constructor Detail
-
EventRef
public EventRef(Event.EventType event, ConnectionHandler.EventCallback callback)
Constructs an EventRef.- Parameters:
event
- event the callback is registered to.callback
- the callback being registered.
-
-