blob: 950a88801cf6d0d70fb8d7977f9d15f8f66034d6 [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 byte.
*
* @param item the item to get the provided memory for.
* @return the amount of memory the specified component provides.
*/
int amount(ItemStack item);
}