blob: c429ababccf0b0c69e3d4fe002deace5404dcc60 [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
object PowerSupply extends Item {
override def worksWith(stack: ItemStack) = isOneOf(stack, Items.psu)
override def createEnvironment(stack: ItemStack, container: AnyRef) = new component.PowerSupply()
override def slot(stack: ItemStack) = Slot.Power
}