- Notifications
You must be signed in to change notification settings - Fork0
Simple and easy to use event system
License
illuminator3/EventSystem
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Building the project is really easy. First you'll have to clone the repository:git clone https://github.com/illuminator3/EventSystem after that's done building the project can be done by runninggradle build.
Add the jitpack repository:
<repository> <id>jitpack.io</id> <url>https://jitpack.io</url></repository>
Find the correct commit version (e.g. 7c52229960) (can also be foundhere). Use it as the dependency version:
<dependency> <groupId>com.github.illuminator3</groupId> <artifactId>EventSystem</artifactId> <version>[version]</version></dependency>
Register the jitpack repository:
maven { url'https://jitpack.io' }Find the versionhere and add the dependency:
implementation'com.github.illuminator3:EventSystem:<version>'Import the root package:
importme.illuminator3.event.*;
You can now add a listener by using theEventSystem#addListener function (who could've guessed lol):
EventSystem.addListener(myListener);
Calling an event is done by invoking theEventSystem#call method:
EventSystem.call(myEvent);
Adding a filter is also really easy, just call theEventSystem#addFilter method:
EventSystem.addFilter(myFilter);
Removing a certain listener/filter can be done by invoking either theEventSystem#removeListener orEventSystem#addListener method:
EventSystem.removeFilter(myFilter);// Removing a filterEventSystem.removeListener(myListener);// Remove a listener
You can contribute by creating anissue orpull request. Please keep the code clean and readable. All contributed code must be in the already present code format.
This project is licensed under the Apache License 2.0 - see theLICENSE file for details
- Commercial use
- Modification
- Distribution
- Patent use
- Private use
- Trademark use
- Liability
- Warranty
About
Simple and easy to use event system
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.