Package appeng.api.storage.cells
Interface ICellWorkbenchItem
- All Superinterfaces:
net.minecraft.world.level.ItemLike,IUpgradeableItem
- All Known Subinterfaces:
IBasicCellItem
-
Method Summary
Modifier and TypeMethodDescriptionappeng.util.ConfigInventorygetConfigInventory(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) booleanisEditable(net.minecraft.world.item.ItemStack is) if this return false, the item will not be treated as a cell, and cannot be inserted into the work bench.voidsetFuzzyMode(net.minecraft.world.item.ItemStack is, FuzzyMode fzMode) sets the setting on the cell.Methods inherited from interface net.minecraft.world.level.ItemLike
asItemMethods inherited from interface appeng.api.upgrades.IUpgradeableItem
getUpgrades
-
Method Details
-
isEditable
boolean isEditable(net.minecraft.world.item.ItemStack is) if this return false, the item will not be treated as a cell, and cannot be inserted into the work bench.- Parameters:
is- item- Returns:
- true if the item should be editable in the cell workbench.
-
getConfigInventory
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 have exactly 63 slots, any more, or less might cause issues.
onInventoryChange will be called when saving is needed.
-
getFuzzyMode
- Returns:
- the current fuzzy status.
-
setFuzzyMode
sets the setting on the cell.
-