Package btw.inventory.container
Class InventoryContainer
java.lang.Object
net.minecraft.src.Container
btw.inventory.container.InventoryContainer
- Direct Known Subclasses:
CookingVesselContainer,HamperContainer
-
Field Summary
FieldsFields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionInventoryContainer(IInventory playerInventory, IInventory containerInventory, int iNumSlotRows, int iNumSlotColumns, int iContainerInventoryX, int iContainerInventoryY, int iPlayerInventoryX, int iPlayerInventoryY) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer entityplayer) transferStackInSlot(EntityPlayer player, int iSlotIndex) Called when a player shift-clicks on a slot.Methods inherited from class net.minecraft.src.Container
addSlotToContainer, attemptToMergeWithSlot, attemptToMergeWithSlotIfEmpty, calcRedstoneFromInventory, canDragIntoSlot, 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, mergeItemStack, mergeItemStack, mergeItemStackFavoringHotbar, onContainerClosed, onCraftGuiOpened, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClick, updateProgressBar
-
Field Details
-
containerInventory
-
-
Constructor Details
-
InventoryContainer
public InventoryContainer(IInventory playerInventory, IInventory containerInventory, int iNumSlotRows, int iNumSlotColumns, int iContainerInventoryX, int iContainerInventoryY, int iPlayerInventoryX, int iPlayerInventoryY)
-
-
Method Details
-
canInteractWith
- Specified by:
canInteractWithin classContainer
-
transferStackInSlot
Description copied from class:ContainerCalled when a player shift-clicks on a slot. You must override this or you will crash when someone does that.- Overrides:
transferStackInSlotin classContainer
-