diff options
author | nea <nea@nea.moe> | 2023-05-04 15:12:56 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-05-04 15:12:56 +0200 |
commit | f2aa75f7c193513215ba4619c66bcc1449b0bc27 (patch) | |
tree | 89a8e309ba84c9966eb9e7a7317255984419f0c0 /src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt | |
parent | bfcb02e52bf9c1fbe9f4d544108ffd547c40eba5 (diff) | |
download | firmament-f2aa75f7c193513215ba4619c66bcc1449b0bc27.tar.gz firmament-f2aa75f7c193513215ba4619c66bcc1449b0bc27.tar.bz2 firmament-f2aa75f7c193513215ba4619c66bcc1449b0bc27.zip |
Make REI aware of SkyBlock item ids
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/repo/RepoManager.kt | 3 |
1 files changed, 3 insertions, 0 deletions
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<RepoManager.Config>(serializer(), "repo", ::Config) { @Serializable @@ -55,6 +56,8 @@ object RepoManager : DataHolder<RepoManager.Config>(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) |