@Deprecated
public interface ISpecialInventory
extends net.minecraft.inventory.IInventory
| Modifier and Type | Method and Description |
|---|---|
int |
addItem(net.minecraft.item.ItemStack stack,
boolean doAdd,
net.minecraftforge.common.util.ForgeDirection from)
Deprecated.
Offers an ItemStack for addition to the inventory.
|
net.minecraft.item.ItemStack[] |
extractItem(boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from,
int maxItemCount)
Deprecated.
Requests items to be extracted from the inventory
|
closeInventory, decrStackSize, getInventoryName, getInventoryStackLimit, getSizeInventory, getStackInSlot, getStackInSlotOnClosing, hasCustomInventoryName, isItemValidForSlot, isUseableByPlayer, markDirty, openInventory, setInventorySlotContentsint addItem(net.minecraft.item.ItemStack stack,
boolean doAdd,
net.minecraftforge.common.util.ForgeDirection from)
stack - ItemStack offered for addition. Do not manipulate this!doAdd - If false no actual addition should take place. Implementors should simulate.from - Orientation the ItemStack is offered from.net.minecraft.item.ItemStack[] extractItem(boolean doRemove,
net.minecraftforge.common.util.ForgeDirection from,
int maxItemCount)
doRemove - If false no actual extraction may occur. Implementors should simulate.
Can be used to "peek" at what the result would befrom - Orientation the ItemStack is requested from.maxItemCount - Maximum amount of items to extract (spread over all returned item stacks)