blob: 6f3bcd985dd4e4006441b4030c9be688abf6a6af [file] [log] [blame] [raw]
package li.cil.oc.api.driver;
import net.minecraft.item.ItemStack;
/**
* Use this trait to implement item drivers extending the memory of a computer.
* <p/>
* Note that the item must be installed in the actual computer's inventory to
* work. If it is installed in an external inventory the computer will not
* recognize the memory.
*/
public interface Memory extends Item {
/**
* The amount of RAM this component provides, in bytes.
*
* @param item the item to get the provided memory for.
* @return the amount of memory the specified component provides.
*/
int amount(ItemStack item);
}