aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
blob: 4593638eb68b2ddc946161bb6625573723a34a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(@Nullable GuiScreen screen) {
        this.screen = screen;
    }
}