Package btw.inventory.container
Class InfernalEnchanterContainer
java.lang.Object
net.minecraft.src.Container
btw.inventory.container.InfernalEnchanterContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]intstatic final intintlongFields inherited from class net.minecraft.src.Container
crafters, inventoryItemStacks, inventorySlots, windowId -
Constructor Summary
ConstructorsConstructorDescriptionInfernalEnchanterContainer(InventoryPlayer playerInventory, World world, int i, int j, int k) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInteractWith(EntityPlayer entityplayer) voidLooks for changes made in the container, sends them to every listener.booleanenchantItem(EntityPlayer player, int iButtonIndex) enchants the item on the table using the specified slot; also deducts XP from playervoidonContainerClosed(EntityPlayer player) Called when the container is closed.voidonCraftGuiOpened(ICrafting craftingInterface) voidonCraftMatrixChanged(IInventory inventory) Callback for when the crafting matrix is changed.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, 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, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, retrySlotClick, setPlayerIsPresent, slotClick
-
Field Details
-
tableInventory
-
MAX_ENCHANTMENT_POWER_LEVEL
public static final int MAX_ENCHANTMENT_POWER_LEVEL- See Also:
-
currentEnchantmentLevels
public int[] currentEnchantmentLevels -
maxSurroundingBookshelfLevel
public int maxSurroundingBookshelfLevel -
lastMaxSurroundingBookshelfLevel
public int lastMaxSurroundingBookshelfLevel -
nameSeed
public long nameSeed
-
-
Constructor Details
-
InfernalEnchanterContainer
public InfernalEnchanterContainer(InventoryPlayer playerInventory, World world, int i, int j, int k)
-
-
Method Details
-
onCraftMatrixChanged
Description copied from class:ContainerCallback for when the crafting matrix is changed.- Overrides:
onCraftMatrixChangedin classContainer
-
onContainerClosed
Description copied from class:ContainerCalled when the container is closed.- Overrides:
onContainerClosedin classContainer
-
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
-
enchantItem
Description copied from class:Containerenchants the item on the table using the specified slot; also deducts XP from player- Overrides:
enchantItemin 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
-