Skip to content

X3rces/EventBus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

EventBus is an event system which can be used to fire events to registered methods via registering the use of the @EventHandler annotation

Usage


To use the event system you'll need an instance of EventManager
EventManager eventManager = new EventManager();
To register an event listener all you need to do is call either
eventManager.addEventListener(object);
with object being the object which holds your event handler method or you can use
eventManager.addSpecificEventListener(object, class);
this will only register event listeners with a specific event type Now to fire an event you'll want to use
eventManager.fireEvent(event)

About

An event system utilizing Reflection and Annotations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages