blob: 8563ab588ce5346a7c4721cc29b968d867af60c9 [file] [log] [blame] [raw]
package li.cil.oc.common.item
import li.cil.oc.api
import net.minecraft.item.ItemStack
class InkCartridge(val parent: Delegator) extends Delegate {
override def maxStackSize = 1
override def getContainerItem(stack: ItemStack): ItemStack = {
if (api.Items.get(stack) == api.Items.get("inkCartridge"))
api.Items.get("inkCartridgeEmpty").createItemStack(1)
else
super.getContainerItem(stack)
}
override def hasContainerItem(stack: ItemStack): Boolean = true
}