blob: bc7247fe955ad57ca78d1b9712038568da8f3083 [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
object WirelessNetworkCard extends Item {
def worksWith(stack: ItemStack) = isOneOf(stack, Items.wlan)
override def createEnvironment(stack: ItemStack, container: AnyRef) =
container match {
case owner: TileEntity => new component.WirelessNetworkCard(owner)
case _ => null
}
def slot(stack: ItemStack) = Slot.Card
}