blob: 0ce51ed30ea71b2e507868a0836b7954116564ae [file] [log] [blame] [raw]
package li.cil.oc.server.driver.item
import li.cil.oc.Items
import li.cil.oc.api.driver.Slot
import li.cil.oc.server.component
import net.minecraft.item.ItemStack
import net.minecraft.tileentity.{TileEntity => MCTileEntity}
object Reader extends Item {
override def worksWith(stack: ItemStack) = isOneOf(stack, Items.reader)
override def createEnvironment(stack: ItemStack, container: MCTileEntity) = new component.Reader(container)
override def slot(stack: ItemStack) = Slot.Upgrade
}