Interface ISegmentedInventory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ISegmentedInventory
Allows access to specific segments of a machines inventory.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
    Identifies the sub-inventory used to store storage cells in machines such as the cell workbench, drive, ME chest.
    static final net.minecraft.resources.ResourceLocation
    Identifies an inventory that contains fake items for the purpose of configuring a filter or interface auto-stocking.
    static final net.minecraft.resources.ResourceLocation
    Identifies the sub-inventory used locally by the machine to store items.
    static final net.minecraft.resources.ResourceLocation
    Identifies the sub-inventory that contains installed upgrades.
  • Method Summary

    Modifier and Type
    Method
    Description
    getSubInventory(net.minecraft.resources.ResourceLocation id)
    Access an internal inventory, note, not all inventories contain real items, some may be ghost items, and treating them a real inventories will result in duplication.
  • Field Details

    • CONFIG

      static final net.minecraft.resources.ResourceLocation CONFIG
      Identifies an inventory that contains fake items for the purpose of configuring a filter or interface auto-stocking.
    • UPGRADES

      static final net.minecraft.resources.ResourceLocation UPGRADES
      Identifies the sub-inventory that contains installed upgrades. See IUpgradeInventory.
    • STORAGE

      static final net.minecraft.resources.ResourceLocation STORAGE
      Identifies the sub-inventory used locally by the machine to store items.
    • CELLS

      static final net.minecraft.resources.ResourceLocation CELLS
      Identifies the sub-inventory used to store storage cells in machines such as the cell workbench, drive, ME chest.
  • Method Details

    • getSubInventory

      @Nullable @Nullable InternalInventory getSubInventory(net.minecraft.resources.ResourceLocation id)
      Access an internal inventory, note, not all inventories contain real items, some may be ghost items, and treating them a real inventories will result in duplication.
      Parameters:
      id - Identifier for the inventory segment.
      Returns:
      Null if the machine has no sub-inventory with the given id.