diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-28 14:33:31 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-05-28 14:33:31 +0700 |
commit | f5cd94bdac8c20e61bc6d7e898618ebf7ea2dc66 (patch) | |
tree | 967a96344046a0bf4e73cf041fc2b2d22aef4568 /src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java | |
parent | 01e4c0dfb2a9726a9bf1c4d1a1fe28edbc3d094c (diff) | |
download | OneConfig-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.java | 8 |
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; } } |