public class TransactorSimple extends Transactor
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.inventory.IInventory |
inventory |
| Constructor and Description |
|---|
TransactorSimple(net.minecraft.inventory.IInventory inventory) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addToSlot(IInvSlot slot,
net.minecraft.item.ItemStack stack,
int injected,
boolean doAdd) |
int |
inject(net.minecraft.item.ItemStack stack,
net.minecraftforge.common.util.ForgeDirection orientation,
boolean doAdd) |
net.minecraft.item.ItemStack |
remove(IStackFilter filter,
net.minecraftforge.common.util.ForgeDirection orientation,
boolean doRemove)
Removes and returns a single item from the inventory matching the filter.
|
add, getTransactorForpublic TransactorSimple(net.minecraft.inventory.IInventory inventory)
public int inject(net.minecraft.item.ItemStack stack,
net.minecraftforge.common.util.ForgeDirection orientation,
boolean doAdd)
inject in class Transactorprotected int addToSlot(IInvSlot slot, net.minecraft.item.ItemStack stack, int injected, boolean doAdd)
slot - stack - injected - Amount not to move?doAdd - public net.minecraft.item.ItemStack remove(IStackFilter filter, net.minecraftforge.common.util.ForgeDirection orientation, boolean doRemove)
ITransactor