2014-01-27 05:00:36 +01:00
|
|
|
package appeng.items.contents;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import appeng.tile.inventory.AppEngInternalInventory;
|
|
|
|
import appeng.util.Platform;
|
|
|
|
|
|
|
|
public class CellConfig extends AppEngInternalInventory
|
|
|
|
{
|
|
|
|
|
|
|
|
final ItemStack is;
|
|
|
|
|
|
|
|
public CellConfig(ItemStack is) {
|
|
|
|
super( null, 63 );
|
|
|
|
this.is = is;
|
|
|
|
readFromNBT( Platform.openNbtData( is ), "list" );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2014-02-09 02:34:52 +01:00
|
|
|
public void markDirty()
|
2014-01-27 05:00:36 +01:00
|
|
|
{
|
|
|
|
writeToNBT( Platform.openNbtData( is ), "list" );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|