Package appeng.api.storage.cells
Interface ICellWorkbenchItem
- All Superinterfaces:
net.minecraft.world.level.ItemLike
,IUpgradeableItem
- All Known Subinterfaces:
IBasicCellItem
-
Method Summary
Modifier and TypeMethodDescriptiondefault appeng.util.ConfigInventory
getConfigInventory
(net.minecraft.world.item.ItemStack is) Used to extract, or mirror the contents of the work bench onto the cell.getFuzzyMode
(net.minecraft.world.item.ItemStack is) default boolean
isEditable
(net.minecraft.world.item.ItemStack is) Determines whether or not the item should be treated as a cell and allow for configuration via a cell workbench.void
setFuzzyMode
(net.minecraft.world.item.ItemStack is, FuzzyMode fzMode) sets the setting on the cell.Methods inherited from interface net.minecraft.world.level.ItemLike
asItem
Methods inherited from interface appeng.api.upgrades.IUpgradeableItem
getUpgrades
-
Method Details
-
isEditable
default boolean isEditable(net.minecraft.world.item.ItemStack is) Determines whether or not the item should be treated as a cell and allow for configuration via a cell workbench. By default, any such item with either a filtering or upgrade inventory is thus assumed to be editable.- Parameters:
is
- item- Returns:
- true if the item should be editable in the cell workbench.
-
getConfigInventory
default appeng.util.ConfigInventory getConfigInventory(net.minecraft.world.item.ItemStack is) Used to extract, or mirror the contents of the work bench onto the cell.This should not exceed 63 slots. Any more than that might cause issues.
onInventoryChange will be called when saving is needed.
-
getFuzzyMode
- Returns:
- the current fuzzy status.
-
setFuzzyMode
sets the setting on the cell.
-