Package appeng.api.inventories
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.
Allows access to specific segments of a machines inventory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 TypeMethodDescription@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.
-
Field Details
-
CONFIG
static final net.minecraft.resources.ResourceLocation CONFIGIdentifies an inventory that contains fake items for the purpose of configuring a filter or interface auto-stocking. -
UPGRADES
static final net.minecraft.resources.ResourceLocation UPGRADESIdentifies the sub-inventory that contains installed upgrades. SeeIUpgradeInventory
. -
STORAGE
static final net.minecraft.resources.ResourceLocation STORAGEIdentifies the sub-inventory used locally by the machine to store items. -
CELLS
static final net.minecraft.resources.ResourceLocation CELLSIdentifies the sub-inventory used to store storage cells in machines such as the cell workbench, drive, ME chest.
-
-
Method Details
-
getSubInventory
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.
-