Applied-Energistics-2-tiler.../items/contents/CellUpgrades.java

24 lines
493 B
Java
Raw Normal View History

package appeng.items.contents;
import net.minecraft.item.ItemStack;
import appeng.parts.automation.UpgradeInventory;
import appeng.util.Platform;
public class CellUpgrades extends UpgradeInventory
{
final ItemStack is;
public CellUpgrades(ItemStack is, int upgrades) {
super( is.getItem(), null, upgrades );
this.is = is;
readFromNBT( Platform.openNbtData( is ), "upgrades" );
}
@Override
2014-02-09 02:34:52 +01:00
public void markDirty()
{
writeToNBT( Platform.openNbtData( is ), "upgrades" );
}
}