public static interface InventoryUtility.OptimizedExtractor
| Modifier and Type | Method and Description |
|---|---|
int |
extract(ItemStack source,
ItemStack toExtract,
boolean simulate,
EntityPlayerMP player)
Extract a particular type of item.
|
int extract(ItemStack source, ItemStack toExtract, boolean simulate, EntityPlayerMP player)
Whether optimized extractor do recursive extraction is at the discretion of implementor.
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