blob: 77e0f28c99ff17fd43d6f6b2b44f348badde2343 [file] [log] [blame] [raw]
package li.cil.oc.server.driver
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(item: ItemStack) = isOneOf(item, Items.psu)
override def createEnvironment(item: ItemStack, container: AnyRef) = new component.PowerSupply()
override def slot(item: ItemStack) = Slot.Power
}