public abstract class ContainerItemInventory<I extends ItemInventory> extends ContainerForestry
| Modifier and Type | Field and Description |
|---|---|
protected I |
inventory |
PLAYER_HOTBAR_OFFSET, PLAYER_INV_SLOTS| Modifier | Constructor and Description |
|---|---|
protected |
ContainerItemInventory(I inventory,
net.minecraft.entity.player.InventoryPlayer playerInventory,
int xInv,
int yInv) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHotbarSlot(net.minecraft.entity.player.InventoryPlayer playerInventory,
int slot,
int x,
int y) |
protected boolean |
canAccess(net.minecraft.entity.player.EntityPlayer player) |
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer entityplayer) |
I |
getItemInventory() |
net.minecraft.item.ItemStack |
slotClick(int slotId,
int dragType_or_button,
net.minecraft.inventory.ClickType clickTypeIn,
net.minecraft.entity.player.EntityPlayer player) |
addPlayerInventory, addSlot, addSlotToContainer, getContainerSections, getForestrySlot, sendPacketToListeners, transferStackInSlotaddListener, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, updateProgressBarprotected final I extends ItemInventory inventory
protected ContainerItemInventory(I inventory, net.minecraft.entity.player.InventoryPlayer playerInventory, int xInv, int yInv)
protected void addHotbarSlot(net.minecraft.entity.player.InventoryPlayer playerInventory,
int slot,
int x,
int y)
addHotbarSlot in class ContainerForestryprotected final boolean canAccess(net.minecraft.entity.player.EntityPlayer player)
canAccess in class ContainerForestrypublic final boolean canInteractWith(net.minecraft.entity.player.EntityPlayer entityplayer)
canInteractWith in class net.minecraft.inventory.Containerpublic net.minecraft.item.ItemStack slotClick(int slotId,
int dragType_or_button,
net.minecraft.inventory.ClickType clickTypeIn,
net.minecraft.entity.player.EntityPlayer player)
slotClick in class ContainerForestrypublic I getItemInventory()