You can now disassemble Storage Cells, Crafting CPU Parts, and Encoded Patterns by crafting items by themselves.

This commit is contained in:
AlgorithmX2
2014-07-29 21:27:37 -05:00
parent f5ba33dda5
commit ba182af4e9
6 changed files with 162 additions and 1 deletions
+14
View File
@@ -20,6 +20,7 @@ import appeng.api.storage.IMEInventory;
import appeng.api.storage.StorageChannel;
import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IItemList;
import appeng.core.AEConfig;
import appeng.core.features.AEFeature;
import appeng.core.localization.GuiText;
import appeng.items.AEBaseItem;
@@ -226,4 +227,17 @@ public class ItemBasicStorageCell extends AEBaseItem implements IStorageCell, II
{
return dissassembleDrive( stack, world, player );
}
@Override
public boolean hasContainerItem()
{
return AEConfig.instance.isFeatureEnabled( AEFeature.enableDisassemblyCrafting );
}
@Override
public ItemStack getContainerItem(ItemStack itemStack)
{
return AEApi.instance().materials().materialEmptyStorageCell.stack( 1 );
}
}