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

import java.util.List;

public class SidebarPostEvent extends Event {

    public Scoreboard scoreboard;
    public ScoreObjective objective;
    public List<String> scores;
    public String[] arrayScores;

    public SidebarPostEvent(Scoreboard scoreboard, ScoreObjective objective, List<String> scores) {
        this.scoreboard = scoreboard;
        this.objective = objective;
        this.scores = scores;
        this.arrayScores = scores.toArray(new String[]{});
    }
}