aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/api/events/SidebarLineUpdateEvent.java
blob: 931843c99b00b9d3b412fd3eb093f70c13752760 (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
package com.thatgravyboat.skyblockhud.api.events;

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

import java.util.Map;

public class SidebarLineUpdateEvent extends Event {

    public String rawLine;
    public String formattedLine;
    public int position;
    public Scoreboard scoreboard;
    public Map<Integer, String> allFormattedLines;
    public ScoreObjective objective;

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