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

/**
 * Called when a game tick is started / ended, represented by a {@link Stage}
 */
public class RenderEvent {
    /**
     * Whether the tick is starting or ending.
     */
    public final Stage stage;

    /**
     * How much time has elapsed since the last tick, in ticks. Used for animations.
     */
    public final float deltaTicks;

    public RenderEvent(Stage stage, float deltaTicks) {
        this.stage = stage;
        this.deltaTicks = deltaTicks;
    }
}