From cbc8eff63ac1fd6caebbd93348877124896f2d80 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 22 Jun 2025 16:09:43 +0200 Subject: feat: Allow breaking itemstacks even further for faster repo reloads --- src/main/kotlin/util/SkyblockId.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/util') diff --git a/src/main/kotlin/util/SkyblockId.kt b/src/main/kotlin/util/SkyblockId.kt index 58aa24c..af767f8 100644 --- a/src/main/kotlin/util/SkyblockId.kt +++ b/src/main/kotlin/util/SkyblockId.kt @@ -22,6 +22,7 @@ import net.minecraft.network.codec.PacketCodec import net.minecraft.network.codec.PacketCodecs import net.minecraft.util.Identifier import moe.nea.firmament.repo.ExpLadders +import moe.nea.firmament.repo.ExpensiveItemCacheApi import moe.nea.firmament.repo.ItemCache.asItemStack import moe.nea.firmament.repo.set import moe.nea.firmament.util.collections.WeakCache @@ -86,6 +87,7 @@ value class SkyblockId(val neuItem: String) : Comparable { val NEUItem.skyblockId get() = SkyblockId(skyblockItemId) val NEUIngredient.skyblockId get() = SkyblockId(itemId) +@ExpensiveItemCacheApi fun NEUItem.guessRecipeId(): String? { if (!skyblockItemId.contains(";")) return skyblockItemId val item = this.asItemStack() -- cgit