aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/events/event/ScreenOpenEvent.java
blob: daee38ba5e1b2fa23d3246c9bec9f56f04c11406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package cc.polyfrost.oneconfig.events.event;

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 Object screen;

    public ScreenOpenEvent(@Nullable Object screen) {
        this.screen = screen;
    }
}