Interface InventoryUtility.OptimizedExtractor
- Enclosing class:
InventoryUtility
public static interface InventoryUtility.OptimizedExtractor
-
Method Summary
Modifier and TypeMethodDescriptionintextract(ItemStack source, ItemStack toExtract, boolean simulate, EntityPlayerMP player) Extract a particular type of item.
-
Method Details
-
extract
Extract a particular type of item. The extractor can choose to not return all items contained within this item as long as it makes sense, but the author should inform the player of this.Whether optimized extractor do recursive extraction is at the discretion of implementor.
- Parameters:
source- from where an extraction should be attemptedtoExtract- stack to extract. should not be mutated! match the NBT tag using EXACT mode.simulate- true if only query but does not actually removeplayer- executor of extraction, or null if from a machine- Returns:
- amount extracted
-