blob: cb0efbd238a71d4f2b5535b56ae798252025c272 [file] [log] [blame] [raw]
package li.cil.oc.integration.opencomputers
import li.cil.oc.Constants
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.server.component
import net.minecraft.item.ItemStack
object DriverDebugCard extends Item with EnvironmentAware {
override def worksWith(stack: ItemStack) = isOneOf(stack,
api.Items.get(Constants.ItemName.DebugCard))
override def createEnvironment(stack: ItemStack, host: EnvironmentHost) = new component.DebugCard(host)
override def slot(stack: ItemStack) = Slot.Card
override def providedEnvironment(stack: ItemStack) = classOf[component.DebugCard]
}