public final class ItemHandlerWrapper extends AbstractInvItemTransactor
IItemTransactor.IItemExtractable, IItemTransactor.IItemInsertable
Constructor and Description |
---|
ItemHandlerWrapper(net.minecraftforge.items.IItemHandler handler) |
Modifier and Type | Method and Description |
---|---|
protected net.minecraft.item.ItemStack |
extract(int slot,
IStackFilter filter,
int min,
int max,
boolean simulate) |
protected int |
getSlots() |
protected net.minecraft.item.ItemStack |
insert(int slot,
net.minecraft.item.ItemStack stack,
boolean simulate) |
protected boolean |
isEmpty(int slot) |
asValid, extract, insert, insert, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canFullyAccept, canPartiallyAccept
public ItemHandlerWrapper(net.minecraftforge.items.IItemHandler handler)
@Nonnull protected net.minecraft.item.ItemStack insert(int slot, @Nonnull net.minecraft.item.ItemStack stack, boolean simulate)
insert
in class AbstractInvItemTransactor
@Nonnull protected net.minecraft.item.ItemStack extract(int slot, IStackFilter filter, int min, int max, boolean simulate)
extract
in class AbstractInvItemTransactor
protected int getSlots()
getSlots
in class AbstractInvItemTransactor
protected boolean isEmpty(int slot)
isEmpty
in class AbstractInvItemTransactor