public abstract class InventoryContainer
extends net.minecraft.inventory.Container
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ITEMBOX |
protected int |
offsetX |
protected int |
offsetY |
| Constructor and Description |
|---|
InventoryContainer(net.minecraft.entity.player.InventoryPlayer inventory)
Make a new TileInventoryContainer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInventory(net.minecraft.inventory.IInventory inventory,
int indexOffset,
int offsetX,
int offsetY,
int rows,
int cols) |
protected void |
addPlayerArmorInventory(net.minecraft.entity.player.InventoryPlayer inventory,
int offsetX,
int offsetY)
Add player armor inventory to the GUI.
|
protected void |
addPlayerInventory(net.minecraft.entity.player.InventoryPlayer inventory,
int offsetX,
int offsetY)
Add player inventory and hotbar to the GUI.
|
protected net.minecraft.inventory.Slot |
addSlotToContainer(net.minecraft.inventory.Slot slot) |
protected net.minecraft.inventory.Slot |
createNewSlot(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y) |
net.minecraft.inventory.IInventory |
getPlayerIInventory()
Get the inventory of the player for which this container is instantiated.
|
protected abstract int |
getSizeInventory() |
protected int |
getSlotRange(int originSlot,
int slotRange,
boolean reverse) |
protected int |
getSlotStart(int originSlot,
int slotStart,
boolean reverse) |
protected boolean |
mergeItemStack(net.minecraft.item.ItemStack stack,
int slotStart,
int slotRange,
boolean reverse) |
net.minecraft.item.ItemStack |
slotClick(int slotId,
int arg,
int function,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
transferStackInSlot(net.minecraft.entity.player.EntityPlayer player,
int slotID) |
addCraftingToCrafters, calcRedstoneFromInventory, canDragIntoSlot, canInteractWith, detectAndSendChanges, enchantItem, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94533_d, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, onContainerClosed, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, updateProgressBarprotected static final int ITEMBOX
protected int offsetX
protected int offsetY
public InventoryContainer(net.minecraft.entity.player.InventoryPlayer inventory)
inventory - The player inventory.protected net.minecraft.inventory.Slot createNewSlot(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y)
protected net.minecraft.inventory.Slot addSlotToContainer(net.minecraft.inventory.Slot slot)
addSlotToContainer in class net.minecraft.inventory.Containerprotected void addInventory(net.minecraft.inventory.IInventory inventory,
int indexOffset,
int offsetX,
int offsetY,
int rows,
int cols)
protected void addPlayerInventory(net.minecraft.entity.player.InventoryPlayer inventory,
int offsetX,
int offsetY)
inventory - Inventory of the playeroffsetX - Offset to XoffsetY - Offset to Yprotected void addPlayerArmorInventory(net.minecraft.entity.player.InventoryPlayer inventory,
int offsetX,
int offsetY)
inventory - Inventory of the playeroffsetX - Offset to XoffsetY - Offset to Yprotected abstract int getSizeInventory()
protected int getSlotStart(int originSlot,
int slotStart,
boolean reverse)
protected int getSlotRange(int originSlot,
int slotRange,
boolean reverse)
public net.minecraft.item.ItemStack transferStackInSlot(net.minecraft.entity.player.EntityPlayer player,
int slotID)
transferStackInSlot in class net.minecraft.inventory.Containerprotected boolean mergeItemStack(net.minecraft.item.ItemStack stack,
int slotStart,
int slotRange,
boolean reverse)
mergeItemStack in class net.minecraft.inventory.Containerpublic net.minecraft.inventory.IInventory getPlayerIInventory()
public net.minecraft.item.ItemStack slotClick(int slotId,
int arg,
int function,
net.minecraft.entity.player.EntityPlayer player)
slotClick in class net.minecraft.inventory.Container