public class TransactorEntityArrow extends java.lang.Object implements IItemTransactor.IItemExtractable
IItemTransactor.IItemExtractable, IItemTransactor.IItemInsertable
Constructor and Description |
---|
TransactorEntityArrow(net.minecraft.entity.projectile.EntityArrow entity) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.item.ItemStack |
extract(IStackFilter filter,
int min,
int max,
boolean simulate)
Extracts a number of items that match the given filter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
insert
canFullyAccept, canPartiallyAccept, insert
public TransactorEntityArrow(net.minecraft.entity.projectile.EntityArrow entity)
@Nonnull public 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.