From f2aa75f7c193513215ba4619c66bcc1449b0bc27 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 4 May 2023 15:12:56 +0200 Subject: Make REI aware of SkyBlock item ids --- src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt') diff --git a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt index 06a8a87..6470914 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt @@ -14,6 +14,7 @@ import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import net.minecraft.client.MinecraftClient import net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket import net.minecraft.text.Text +import moe.nea.notenoughupdates.util.SkyblockId object RepoManager : DataHolder(serializer(), "repo", ::Config) { @Serializable @@ -55,6 +56,8 @@ object RepoManager : DataHolder(serializer(), "repo", ::Conf }) } + fun getNEUItem(skyblockId: SkyblockId) = neuRepo.items.getItemBySkyblockId(skyblockId.neuItem) + fun launchAsyncUpdate(force: Boolean = false) { NotEnoughUpdates.coroutineScope.launch { progressBar.reportProgress("Downloading", 0, null) -- cgit