public interface IMEInventory<StackType extends IAEStack>
Implementations should COMPLETELY ignore stack size limits from an external view point, Meaning that you can inject Integer.MAX_VALUE items and it should work as defined, or be able to extract Integer.MAX_VALUE and have it work as defined, Translations to MC's max stack size are external to the AE API.
If you want to request a stack of an item, you should should determine that prior to requesting the stack from the inventory.
Modifier and Type | Method and Description |
---|---|
StackType |
extractItems(StackType request,
Actionable mode,
BaseActionSource src)
Extract the specified item from the ME Inventory
|
IItemList<StackType> |
getAvailableItems(IItemList<StackType> out)
request a full report of all available items, storage.
|
StorageChannel |
getChannel() |
StackType |
injectItems(StackType input,
Actionable type,
BaseActionSource src)
Store new items, or simulate the addition of new items into the ME Inventory.
|
StackType injectItems(StackType input, Actionable type, BaseActionSource src)
input
- item to add.type
- action typesrc
- action sourceStackType extractItems(StackType request, Actionable mode, BaseActionSource src)
request
- item to request ( with stack size. )mode
- simulate, or perform action?IItemList<StackType> getAvailableItems(IItemList<StackType> out)
out
- the IItemList the results will be written tooStorageChannel getChannel()