@FunctionalInterface public static interface IItemTransactor.IItemExtractable extends IItemTransactor
IItemTransactor.IItemExtractable, IItemTransactor.IItemInsertable
Modifier and Type | Method and Description |
---|---|
default net.minecraft.item.ItemStack |
insert(net.minecraft.item.ItemStack stack,
boolean allOrNone,
boolean simulate) |
canFullyAccept, canPartiallyAccept, extract, insert
@Nonnull default net.minecraft.item.ItemStack insert(@Nonnull net.minecraft.item.ItemStack stack, boolean allOrNone, boolean simulate)
insert
in interface IItemTransactor
stack
- The stack to insert. Must not be null!allOrNone
- If true then either the entire stack will be used or none of it.simulate
- If true then the in-world state of this will not be changed.ItemStack.EMPTY
if all of it was accepted.