Interface ICellWorkbenchItem

All Superinterfaces:
net.minecraft.world.level.ItemLike, IUpgradeableItem
All Known Subinterfaces:
IBasicCellItem

public interface ICellWorkbenchItem extends IUpgradeableItem
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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.
    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

      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

      FuzzyMode getFuzzyMode(net.minecraft.world.item.ItemStack is)
      Returns:
      the current fuzzy status.
    • setFuzzyMode

      void setFuzzyMode(net.minecraft.world.item.ItemStack is, FuzzyMode fzMode)
      sets the setting on the cell.