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

import net.minecraft.util.Timer;

/**
 * Called when the {@link Timer} is updated.
 * Can be used as an alternative to getting instances of {@link Timer}
 * via Mixin or Access Wideners / Transformers
 */
public class TimerUpdateEvent {
    /**
     * Whether the deltaTicks / renderPartialTicks was updated
     */
    public final boolean updatedDeltaTicks;
    /**
     * The {@link Timer} instance
     */
    public final Timer timer;

    public TimerUpdateEvent(Timer timer, boolean updatedDeltaTicks) {
        this.timer = timer;
        this.updatedDeltaTicks = updatedDeltaTicks;
    }
}