public class TransactorEntityItem extends java.lang.Object implements IItemTransactor.IItemExtractable
IItemTransactor.IItemExtractable, IItemTransactor.IItemInsertable
Constructor and Description |
---|
TransactorEntityItem(net.minecraft.entity.item.EntityItem 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
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
insert
canFullyAccept, canPartiallyAccept, insert
public TransactorEntityItem(net.minecraft.entity.item.EntityItem 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.public java.lang.String toString()
toString
in class java.lang.Object