public class ContainerEnchantment extends Container
Modifier and Type | Field and Description |
---|---|
int[] |
enchantLevels
3-member array storing the enchantment levels of each slot
|
long |
nameSeed
used as seed for EnchantmentNameParts (see GuiEnchantment)
|
IInventory |
tableInventory
SlotEnchantmentTable object with ItemStack to be enchanted
|
inventoryItemStacks, inventorySlots, windowId
Constructor and Description |
---|
ContainerEnchantment(InventoryPlayer par1InventoryPlayer,
World par2World,
int par3,
int par4,
int par5) |
Modifier and Type | Method and Description |
---|---|
void |
addCraftingToCrafters(ICrafting par1ICrafting) |
boolean |
canInteractWith(EntityPlayer par1EntityPlayer) |
void |
detectAndSendChanges()
Looks for changes made in the container, sends them to every listener.
|
boolean |
enchantItem(EntityPlayer par1EntityPlayer,
int par2)
enchants the item on the table using the specified slot; also deducts XP from player
|
void |
onContainerClosed(EntityPlayer par1EntityPlayer)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory par1IInventory)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer par1EntityPlayer,
int par2)
Called when a player shift-clicks on a slot.
|
void |
updateProgressBar(int par1,
int par2) |
calcRedstoneFromInventory, canDragIntoSlot, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClick
public IInventory tableInventory
public long nameSeed
public int[] enchantLevels
public ContainerEnchantment(InventoryPlayer par1InventoryPlayer, World par2World, int par3, int par4, int par5)
public void addCraftingToCrafters(ICrafting par1ICrafting)
addCraftingToCrafters
in class Container
public void detectAndSendChanges()
detectAndSendChanges
in class Container
public void updateProgressBar(int par1, int par2)
updateProgressBar
in class Container
public void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged
in class Container
public boolean enchantItem(EntityPlayer par1EntityPlayer, int par2)
enchantItem
in class Container
public void onContainerClosed(EntityPlayer par1EntityPlayer)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot
in class Container