diff options
author | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-07 21:52:37 -0230 |
---|---|---|
committer | ThatGravyBoat <thatgravyboat@gmail.com> | 2021-07-07 21:52:37 -0230 |
commit | 36a66e436ef3c5a3aa2deda0e1538db072ca7f71 (patch) | |
tree | 32a3a104464da3ef8ee743ecfe241d1320ad25c9 /src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java | |
parent | 93248d28d6b314b42f6b0d82164975343b214ece (diff) | |
download | SkyblockHud-Death-Defied-36a66e436ef3c5a3aa2deda0e1538db072ca7f71.tar.gz SkyblockHud-Death-Defied-36a66e436ef3c5a3aa2deda0e1538db072ca7f71.tar.bz2 SkyblockHud-Death-Defied-36a66e436ef3c5a3aa2deda0e1538db072ca7f71.zip |
Added Alpha Crystal Hollows locations to get ahead of the update and added commands for people to help me with deving.
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java b/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java index b1115ae..41a4ad8 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/api/LeaderboardGetter.java @@ -1,13 +1,9 @@ package com.thatgravyboat.skyblockhud.api; -import static com.thatgravyboat.skyblockhud.ComponentHandler.SCOREBOARD_CHARACTERS; - import com.thatgravyboat.skyblockhud.Utils; import com.thatgravyboat.skyblockhud.api.events.SidebarLineUpdateEvent; import com.thatgravyboat.skyblockhud.api.events.SidebarPostEvent; import com.thatgravyboat.skyblockhud.api.events.SidebarPreGetEvent; -import java.util.*; -import java.util.stream.Collectors; import net.minecraft.client.Minecraft; import net.minecraft.scoreboard.Score; import net.minecraft.scoreboard.ScoreObjective; @@ -17,6 +13,11 @@ import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; +import java.util.*; +import java.util.stream.Collectors; + +import static com.thatgravyboat.skyblockhud.ComponentHandler.SCOREBOARD_CHARACTERS; + public class LeaderboardGetter { private static Map<Integer, String> cachedScores = new HashMap<>(); @@ -24,6 +25,10 @@ public class LeaderboardGetter { private static int ticks = 0; + public static List<String> getCachedScores() { + return cachedScoresList; + } + @SubscribeEvent public void onClientUpdate(TickEvent.ClientTickEvent event) { if (event.phase.equals(TickEvent.Phase.START)) return; |