blob: 1fe95f7fe8ff55990c6ffa80ce71db16c1ff55a9 [file] [log] [blame] [raw]
package li.cil.oc.api.driver;
import net.minecraft.item.ItemStack;
/**
* Use this interface 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 stack the item to get the provided memory for.
* @return the amount of memory the specified component provides.
*/
int amount(ItemStack stack);
}