public interface IStorageCell extends ICellWorkbenchItem
Good cause it means you don't have to do anything, bad because you have little to no control over it.
The standard AE implementation only provides 1-63 Types
Modifier and Type | Method and Description |
---|---|
int |
BytePerType(net.minecraft.item.ItemStack cellItem)
Deprecated.
|
int |
getBytes(net.minecraft.item.ItemStack cellItem)
It wont work if the return is not a multiple of 8.
|
int |
getBytesPerType(net.minecraft.item.ItemStack cellItem)
Determines the number of bytes used for any type included on the cell.
|
double |
getIdleDrain() |
int |
getTotalTypes(net.minecraft.item.ItemStack cellItem)
Must be between 1 and 63, indicates how many types you want to store on
the item.
|
boolean |
isBlackListed(net.minecraft.item.ItemStack cellItem,
IAEItemStack requestedAddition)
Allows you to fine tune which items are allowed on a given cell, if you
don't care, just return false; As the handler for this type of cell is
still the default cells, the normal AE black list is also applied.
|
boolean |
isStorageCell(net.minecraft.item.ItemStack i)
Allows an item to selectively enable or disable its status as a storage
cell.
|
boolean |
storableInStorageCell()
Allows you to specify if this storage cell can be stored inside other
storage cells, only set this for special items like the matter cannon
that are not general purpose storage.
|
getConfigInventory, getFuzzyMode, getUpgradesInventory, isEditable, setFuzzyMode
int getBytes(net.minecraft.item.ItemStack cellItem)
Integer.MAX_VALUE
+ 1) / 8.cellItem
- item@Deprecated int BytePerType(net.minecraft.item.ItemStack cellItem)
getBytesPerType(ItemStack)
cellItem
- itemint getBytesPerType(net.minecraft.item.ItemStack cellItem)
cellItem
- itemint getTotalTypes(net.minecraft.item.ItemStack cellItem)
cellItem
- itemboolean isBlackListed(net.minecraft.item.ItemStack cellItem, IAEItemStack requestedAddition)
cellItem
- itemrequestedAddition
- requested additionboolean storableInStorageCell()
boolean isStorageCell(net.minecraft.item.ItemStack i)
i
- itemdouble getIdleDrain()