Merge pull request #1276 from thatsIch/b-1186-disassembling-storage-missing-upgrades

Fixes #1186: Storage Cells drop upgrades upon disassembling
This commit is contained in:
thatsIch
2015-04-24 19:12:17 +02:00
16 changed files with 109 additions and 59 deletions
@@ -59,9 +59,21 @@ public interface IStorageCell extends ICellWorkbenchItem
* @param cellItem item
*
* @return number of bytes
*
* @deprecated use {@link IStorageCell#getBytesPerType(ItemStack)}
*/
@Deprecated
int BytePerType( ItemStack cellItem );
/**
* Determines the number of bytes used for any type included on the cell.
*
* @param cellItem item
*
* @return number of bytes
*/
int getBytesPerType( ItemStack cellItem );
/**
* Must be between 1 and 63, indicates how many types you want to store on
* the item.