aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/api/events/SidebarLineUpdateEvent.java
blob: 8a7aa39efbef33b3672c7dd52bb3240b66e0c2a3 (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
25
26
27
28
29
package com.thatgravyboat.skyblockhud.api.events;

import net.minecraft.scoreboard.ScoreObjective;
import net.minecraft.scoreboard.Scoreboard;
import net.minecraftforge.fml.common.eventhandler.Event;

public class SidebarLineUpdateEvent extends Event {

    public String rawLine;
    public String formattedLine;
    public int position;
    public Scoreboard scoreboard;
    public ScoreObjective objective;

    public SidebarLineUpdateEvent(
        String rawLine,
        String formattedLine,
        int score,
        int max,
        Scoreboard scoreboard,
        ScoreObjective objective
    ) {
        this.rawLine = rawLine;
        this.formattedLine = formattedLine;
        this.position = max - score;
        this.scoreboard = scoreboard;
        this.objective = objective;
    }
}