blob: d814a86714e7b693dcbacd709614d6f8a6d25df3 [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 Generator extends Item {
override def worksWith(stack: ItemStack) = isOneOf(stack, Items.generator)
override def createEnvironment(stack: ItemStack, container: AnyRef) = new component.Generator()
override def slot(stack: ItemStack) = Slot.Upgrade
}