Skip to content

Commit 1066ef5

Browse files
authored
Merge pull request #51 from FazziCLAY/pre-release
Pre release
2 parents d0de217 + d85ea10 commit 1066ef5

File tree

283 files changed

+8243
-1862
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+8243
-1862
lines changed

.idea/deploymentTargetDropDown.xml

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/render.experimental.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

api/build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
plugins {
2+
id 'java-library'
3+
}
4+
5+
java {
6+
sourceCompatibility = JavaVersion.VERSION_17
7+
targetCompatibility = JavaVersion.VERSION_17
8+
}
9+
10+
dependencies {
11+
implementation 'org.jetbrains:annotations:15.0'
12+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.fazziclay.opentoday.api;
2+
3+
public interface Event {
4+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.fazziclay.opentoday.api;
2+
3+
public class EventExceptionEvent implements Event {
4+
private final Event event;
5+
private final Exception exception;
6+
7+
public EventExceptionEvent(Event event, Exception e) {
8+
this.event = event;
9+
this.exception = e;
10+
}
11+
12+
public Event getEvent() {
13+
return event;
14+
}
15+
16+
public Exception getException() {
17+
return exception;
18+
}
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.fazziclay.opentoday.api;
2+
3+
public class EventHandler {
4+
public static void call(Event event) {
5+
try {
6+
PluginManager.callEvent(event);
7+
} catch (Exception e) {
8+
PluginManager.callEvent(new EventExceptionEvent(event, e));
9+
}
10+
}
11+
12+
public void handle(Event event) {
13+
14+
}
15+
}

0 commit comments

Comments
 (0)