@FunctionalInterface public static interface IItemTransactor.IItemInsertable extends IItemTransactor
IItemTransactor.IItemExtractable, IItemTransactor.IItemInsertable
Modifier and Type | Method and Description |
---|---|
default net.minecraft.item.ItemStack |
extract(IStackFilter filter,
int min,
int max,
boolean simulate)
Extracts a number of items that match the given filter
|
canFullyAccept, canPartiallyAccept, insert, insert
@Nonnull default net.minecraft.item.ItemStack extract(IStackFilter filter, int min, int max, boolean simulate)
IItemTransactor
extract
in interface IItemTransactor
filter
- The filter that MUST be met by the extracted stack. Null means no filter - it can be any item.min
- The minimum number of items to extract, or 0 if not enough items can be extractedmax
- The maximum number of items to extract.simulate
- If true then the in-world state of this will not be changed.ItemStack.EMPTY
if it could not be.