aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/event
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-24 23:44:58 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-24 23:44:58 +0700
commitf1830199d99b666f28c2b3b246f688f102adb427 (patch)
tree07fba5e7fce5e523223e8fc9da70f7783d7f15f9 /src/main/java/cc/polyfrost/oneconfig/events/event
parentd4463b33342ccb5ea86c2a2c9da37b9b861b6674 (diff)
downloadOneConfig-f1830199d99b666f28c2b3b246f688f102adb427.tar.gz
OneConfig-f1830199d99b666f28c2b3b246f688f102adb427.tar.bz2
OneConfig-f1830199d99b666f28c2b3b246f688f102adb427.zip
TextHud revamp
add docs to Hud fix config not saving when exiting prematurely some new events
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events/event')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/events/event/PreShutdownEvent.java11
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/events/event/ShutdownEvent.java9
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/events/event/StartEvent.java7
3 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/PreShutdownEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/PreShutdownEvent.java
new file mode 100644
index 0000000..105cfbc
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/events/event/PreShutdownEvent.java
@@ -0,0 +1,11 @@
+package cc.polyfrost.oneconfig.events.event;
+
+/**
+ * Called when the game is about to shut down.
+ * This can be used if anything needs to be done before the screen itself is fully closed
+ * or need to do something before another mod does something via {@link Runtime#addShutdownHook(Thread)}.
+ *
+ * @see ShutdownEvent
+ */
+public class PreShutdownEvent {
+}
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/ShutdownEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/ShutdownEvent.java
new file mode 100644
index 0000000..3f8ee50
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/events/event/ShutdownEvent.java
@@ -0,0 +1,9 @@
+package cc.polyfrost.oneconfig.events.event;
+
+/**
+ * Called when the game is shutting down.
+ *
+ * @see PreShutdownEvent
+ */
+public class ShutdownEvent {
+}
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/StartEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/StartEvent.java
new file mode 100644
index 0000000..2eea91c
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/events/event/StartEvent.java
@@ -0,0 +1,7 @@
+package cc.polyfrost.oneconfig.events.event;
+
+/**
+ * Called when the Minecraft instance is starting.
+ */
+public class StartEvent {
+}