public interface IStorageCell<T extends IAEStack<T>> extends ICellWorkbenchItem
| Modifier and Type | Method and Description |
|---|---|
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.
|
IStorageChannel<T> |
getChannel() |
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,
T 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, setFuzzyModeint getBytes(@Nonnull
net.minecraft.item.ItemStack cellItem)
Integer.MAX_VALUE + 1) / 8.cellItem - itemint getBytesPerType(@Nonnull
net.minecraft.item.ItemStack cellItem)
cellItem - itemint getTotalTypes(@Nonnull
net.minecraft.item.ItemStack cellItem)
cellItem - itemboolean isBlackListed(@Nonnull
net.minecraft.item.ItemStack cellItem,
@Nonnull
T requestedAddition)
cellItem - itemrequestedAddition - requested additionboolean storableInStorageCell()
boolean isStorageCell(@Nonnull
net.minecraft.item.ItemStack i)
i - itemdouble getIdleDrain()
@Nonnull IStorageChannel<T> getChannel()