blob: 63a19af23d837f9772684d114311d1e90ab3c636 [file] [log] [blame] [raw]
package li.cil.oc.integration.opencomputers
import li.cil.oc.api
import li.cil.oc.api.driver.EnvironmentAware
import li.cil.oc.api.driver.EnvironmentHost
import li.cil.oc.api.driver.item.HostAware
import li.cil.oc.common.Slot
import li.cil.oc.common.Tier
import li.cil.oc.server.component
import net.minecraft.item.ItemStack
object DriverUpgradeExperience extends Item with HostAware with EnvironmentAware {
override def worksWith(stack: ItemStack) =
isOneOf(stack, api.Items.get("experienceUpgrade"))
override def createEnvironment(stack: ItemStack, host: EnvironmentHost) = new component.UpgradeExperience()
override def slot(stack: ItemStack) = Slot.Upgrade
override def tier(stack: ItemStack) = Tier.Three
override def providedEnvironment(stack: ItemStack) = classOf[component.UpgradeExperience]
}