aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/rosegoldaddons/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/rosegoldaddons/events')
-rw-r--r--src/main/java/rosegoldaddons/events/MillisecondEvent.java13
-rw-r--r--src/main/java/rosegoldaddons/events/PlayerMoveEvent.java12
-rw-r--r--src/main/java/rosegoldaddons/events/ScreenClosedEvent.java10
3 files changed, 35 insertions, 0 deletions
diff --git a/src/main/java/rosegoldaddons/events/MillisecondEvent.java b/src/main/java/rosegoldaddons/events/MillisecondEvent.java
new file mode 100644
index 0000000..4ea5160
--- /dev/null
+++ b/src/main/java/rosegoldaddons/events/MillisecondEvent.java
@@ -0,0 +1,13 @@
+package rosegoldaddons.events;
+
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+import java.time.LocalDateTime;
+
+public class MillisecondEvent extends Event {
+ public LocalDateTime dateTime;
+
+ public MillisecondEvent() {
+ dateTime = LocalDateTime.now();
+ }
+} \ No newline at end of file
diff --git a/src/main/java/rosegoldaddons/events/PlayerMoveEvent.java b/src/main/java/rosegoldaddons/events/PlayerMoveEvent.java
new file mode 100644
index 0000000..cab6637
--- /dev/null
+++ b/src/main/java/rosegoldaddons/events/PlayerMoveEvent.java
@@ -0,0 +1,12 @@
+package rosegoldaddons.events;
+
+import net.minecraftforge.fml.common.eventhandler.Cancelable;
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+@Cancelable
+public class PlayerMoveEvent extends Event {
+ @Cancelable
+ public static class Pre extends Event {}
+
+ public static class Post extends Event {}
+}
diff --git a/src/main/java/rosegoldaddons/events/ScreenClosedEvent.java b/src/main/java/rosegoldaddons/events/ScreenClosedEvent.java
new file mode 100644
index 0000000..bee57c4
--- /dev/null
+++ b/src/main/java/rosegoldaddons/events/ScreenClosedEvent.java
@@ -0,0 +1,10 @@
+package rosegoldaddons.events;
+
+import net.minecraftforge.fml.common.eventhandler.Cancelable;
+import net.minecraftforge.fml.common.eventhandler.Event;
+
+@Cancelable
+public class ScreenClosedEvent extends Event {
+
+ public ScreenClosedEvent() {}
+}