blob: 289748c4e5512a1070723ad1c9da1a80db3ae896 [file] [log] [blame] [raw]
package li.cil.oc.server.driver
import li.cil.oc.Items
import li.cil.oc.api.driver
import li.cil.oc.api.driver.Slot
import net.minecraft.item.ItemStack
object Disk extends driver.Item {
override def api = null
override def worksWith(item: ItemStack) = item.itemID == Items.multi.itemID && (Items.multi.subItem(item) match {
case None => false
case Some(subItem) => subItem.itemId == Items.hdd.itemId
})
override def slot(item: ItemStack) = Slot.HDD
override def node(item: ItemStack) = null
}