aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 14:33:31 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-05-28 14:33:31 +0700
commitf5cd94bdac8c20e61bc6d7e898618ebf7ea2dc66 (patch)
tree967a96344046a0bf4e73cf041fc2b2d22aef4568 /src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
parent01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c (diff)
downloadOneConfig-f5cd94bdac8c20e61bc6d7e898618ebf7ea2dc66.tar.gz
OneConfig-f5cd94bdac8c20e61bc6d7e898618ebf7ea2dc66.tar.bz2
OneConfig-f5cd94bdac8c20e61bc6d7e898618ebf7ea2dc66.zip
javadocs for events + TimerUpdateEvent
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
index d3a5b66..4593638 100644
--- a/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
+++ b/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
@@ -1,11 +1,17 @@
package cc.polyfrost.oneconfig.events.event;
import net.minecraft.client.gui.GuiScreen;
+import org.jetbrains.annotations.Nullable;
+/**
+ * Called when a screen is opened or closed.
+ * If the screen is closed, {@link ScreenOpenEvent#screen} will be null.
+ */
public class ScreenOpenEvent extends CancellableEvent {
+ @Nullable
public final GuiScreen screen;
- public ScreenOpenEvent(GuiScreen screen) {
+ public ScreenOpenEvent(@Nullable GuiScreen screen) {
this.screen = screen;
}
}