blob: 6d94974689daa4fd138c2415dfd0b38c179dc350 [file] [log] [blame] [raw]
package li.cil.oc.util.mods
import net.minecraft.item.ItemStack
import net.minecraftforge.common.util.ForgeDirection
import universalelectricity.compatibility.Compatibility
object UniversalElectricity {
def isEnergyItem(stack: ItemStack) = Compatibility.isHandler(stack.getItem, ForgeDirection.UNKNOWN)
def getEnergyInItem(stack: ItemStack) = Compatibility.getEnergyItem(stack)
def chargeItem(stack: ItemStack, value: Double) = Compatibility.chargeItem(stack, value, true)
}