Files
Electro-Magic-Tools/src/main/java/ic2/api/info/IEnergyValueProvider.java
T

17 lines
552 B
Java
Raw Normal View History

2014-03-29 12:13:50 +01:00
package ic2.api.info;
import net.minecraft.item.ItemStack;
public interface IEnergyValueProvider {
2014-09-29 21:24:50 +02:00
/**
* Determine the energy value for a single item in the supplied stack.
* The value is used by most machines in the discharge slot.
* <p/>
* This only applies to basic single use items, others are to be queried
* through e.g. ElectricItem.manager.getCharge().
*
* @param itemStack ItemStack containing the item to evaluate.
* @return energy in EU
*/
double getEnergyValue(ItemStack itemStack);
2014-03-29 12:13:50 +01:00
}