/* * The MIT License (MIT) * * Copyright (c) 2013 AlgorithmX2 * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package appeng.api.implementations.items; import javax.annotation.Nonnull; import net.minecraft.item.ItemStack; import appeng.api.storage.IStorageChannel; import appeng.api.storage.cells.ICellHandler; import appeng.api.storage.cells.ICellInventory; import appeng.api.storage.cells.ICellWorkbenchItem; import appeng.api.storage.data.IAEStack; /** * Any item which implements this can be treated as an IMEInventory via * {@link ICellHandler#getCellInventory(ItemStack, appeng.api.storage.cells.ISaveProvider, IStorageChannel)} * or {@link ICellHandler#isCell(ItemStack)}. It automatically handles the * internals and NBT data, which is both nice, and bad for you! *
* Good cause it means you don't have to do anything, bad because you have * little to no control over it. *
* Limited to {@link Integer} internally for most calculations. E.g. if the used * or remaining bytes would overflow {@link Integer#MAX_VALUE} the behaviour is * no longer specified. Even if {@link ICellInventory} is using {@link Long}. *
* The standard AE implementation also only provides 1-63 Types.
*/
public interface IStorageCell