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

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

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[] {});
  }
}