blob: d2f6b7acc13bbbad2d13cf372031ef963c2b36bf [file] [log] [blame] [raw]
package li.cil.oc.integration.opencomputers
import li.cil.oc.api
import li.cil.oc.api.driver.EnvironmentAware
import li.cil.oc.api.driver.EnvironmentHost
import li.cil.oc.common.Slot
import li.cil.oc.common.Tier
import li.cil.oc.server.component
import net.minecraft.item.ItemStack
object DriverLinkedCard extends Item with EnvironmentAware {
override def worksWith(stack: ItemStack) =
isOneOf(stack, api.Items.get("linkedCard"))
override def createEnvironment(stack: ItemStack, host: EnvironmentHost) = new component.LinkedCard()
override def slot(stack: ItemStack) = Slot.Card
override def tier(stack: ItemStack) = Tier.Three
override def providedEnvironment(stack: ItemStack) = classOf[component.LinkedCard]
}