aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/api/events/SidebarLineUpdateEvent.java
blob: 2737ee911158813fad72aee91503000f419cfe73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
    }
}