Package btw.inventory.container
Class BlockDispenserContainer
java.lang.Object
net.minecraft.src.Container
btw.inventory.container.BlockDispenserContainer
-
Field Summary
Fields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionBlockDispenserContainer(IInventory iinventory, BlockDispenserTileEntity tileEntityBlockDispenser) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer entityplayer) voidLooks for changes made in the container, sends them to every listener.voidonContainerClosed(EntityPlayer entityplayer) Called when the container is closed.voidonCraftGuiOpened(ICrafting craftingInterface) slotClick(int i, int j, int k, EntityPlayer entityplayer) transferStackInSlot(EntityPlayer player, int iSlotIndex) Called when a player shift-clicks on a slot.voidupdateProgressBar(int iVariableIndex, int iValue) Methods inherited from class net.minecraft.src.Container
addSlotToContainer, attemptToMergeWithSlot, attemptToMergeWithSlotIfEmpty, calcRedstoneFromInventory, canDragIntoSlot, 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, onCraftMatrixChanged, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent
-
Constructor Details
-
BlockDispenserContainer
public BlockDispenserContainer(IInventory iinventory, BlockDispenserTileEntity tileEntityBlockDispenser)
-
-
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
-
slotClick
-
onContainerClosed
Description copied from class:ContainerCalled when the container is closed.- Overrides:
onContainerClosedin classContainer
-
onCraftGuiOpened
- Overrides:
onCraftGuiOpenedin classContainer
-
detectAndSendChanges
public void detectAndSendChanges()Description copied from class:ContainerLooks for changes made in the container, sends them to every listener.- Overrides:
detectAndSendChangesin classContainer
-
updateProgressBar
@Environment(CLIENT) public void updateProgressBar(int iVariableIndex, int iValue) - Overrides:
updateProgressBarin classContainer
-