-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to use new EventBus System...
- Loading branch information
1 parent
9124bf5
commit e686415
Showing
5 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.mangorage.test; | ||
|
||
import org.mangorage.eventbus.EventBus; | ||
import org.mangorage.mangobotapi.core.events.SaveEvent; | ||
|
||
public class test { | ||
public static void main(String[] args) { | ||
var bus = EventBus.create(); | ||
|
||
bus.addListener(10, SaveEvent.class, test::onSave); | ||
bus.post(new SaveEvent()); | ||
} | ||
|
||
public static void onSave(SaveEvent e) { | ||
System.out.println("LOL"); | ||
} | ||
} |