Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple and easy to use event system

License

NotificationsYou must be signed in to change notification settings

illuminator3/EventSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub issuesGitHub forksGitHub starsGitHub licensedependenciesHits

Building

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.

Dependency installation

Maven

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>

Gradle

Register the jitpack repository:

maven { url'https://jitpack.io' }

Find the versionhere and add the dependency:

implementation'com.github.illuminator3:EventSystem:<version>'

Usage

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

Contribution

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.

License

This project is licensed under the Apache License 2.0 - see theLICENSE file for details

Permissions & Limitations

Permissions

  • Commercial use
  • Modification
  • Distribution
  • Patent use
  • Private use

Limitations

  • Trademark use
  • Liability
  • Warranty

About

Simple and easy to use event system

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp