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 |
onCraftGuiClosed(EntityPlayer par1EntityPlayer)
Callback for when the crafting gui 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, func_94525_a, func_94527_a, func_94528_d, func_94529_b, func_94530_a, func_94531_b, func_94532_c, func_94534_d, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isPlayerNotUsingContainer, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, setPlayerIsPresent, slotClickpublic 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 Containerpublic void detectAndSendChanges()
detectAndSendChanges in class Containerpublic void updateProgressBar(int par1,
int par2)
updateProgressBar in class Containerpublic void onCraftMatrixChanged(IInventory par1IInventory)
onCraftMatrixChanged in class Containerpublic boolean enchantItem(EntityPlayer par1EntityPlayer, int par2)
enchantItem in class Containerpublic void onCraftGuiClosed(EntityPlayer par1EntityPlayer)
onCraftGuiClosed in class Containerpublic boolean canInteractWith(EntityPlayer par1EntityPlayer)
canInteractWith in class Containerpublic ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer, int par2)
transferStackInSlot in class Container