diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt b/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt index ee6b673..c38f350 100644 --- a/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt +++ b/src/main/kotlin/moe/nea/firmament/rei/SBItemEntryDefinition.kt @@ -45,7 +45,13 @@ data class SBItemStack( val neuItem: NEUItem?, val stackSize: Int, ) { - fun asItemStack(): ItemStack? { + constructor(skyblockId: SkyblockId, stackSize: Int = 1) : this( + skyblockId, + RepoManager.getNEUItem(skyblockId), + stackSize + ) + + fun asItemStack(): ItemStack { if (skyblockId == SkyblockId.COINS) return ItemCache.coinItem(stackSize) return neuItem.asItemStack(idHint = skyblockId).copyWithCount(stackSize) |