public class ContainerEnchantment extends Container
Modifier and Type | Field and Description |
---|---|
int[] |
enchantLevels
3-member array storing the enchantment levels of each slot
|
int[] |
field_178151_h |
IInventory |
tableInventory
SlotEnchantmentTable object with ItemStack to be enchanted
|
int |
xpSeed |
crafters, inventoryItemStacks, inventorySlots, windowId
Constructor and Description |
---|
ContainerEnchantment(InventoryPlayer playerInv,
World worldIn) |
ContainerEnchantment(InventoryPlayer playerInv,
World worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
detectAndSendChanges()
Looks for changes made in the container, sends them to every listener.
|
boolean |
enchantItem(EntityPlayer playerIn,
int id)
Handles the given Button-click on the server, currently only used by enchanting.
|
int |
getLapisAmount() |
void |
onContainerClosed(EntityPlayer playerIn)
Called when the container is closed.
|
void |
onCraftGuiOpened(ICrafting listener) |
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index)
Take a stack from the specified inventory slot.
|
void |
updateProgressBar(int id,
int data) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, extractDragMode, func_94534_d, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, putStacksInSlots, removeCraftingFromCrafters, resetDrag, retrySlotClick, setCanCraft, slotClick
public IInventory tableInventory
public int xpSeed
public int[] enchantLevels
public int[] field_178151_h
public ContainerEnchantment(InventoryPlayer playerInv, World worldIn)
public ContainerEnchantment(InventoryPlayer playerInv, World worldIn, BlockPos pos)
public void onCraftGuiOpened(ICrafting listener)
onCraftGuiOpened
in class Container
public void detectAndSendChanges()
detectAndSendChanges
in class Container
public void updateProgressBar(int id, int data)
updateProgressBar
in class Container
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public boolean enchantItem(EntityPlayer playerIn, int id)
enchantItem
in class Container
public int getLapisAmount()
public void onContainerClosed(EntityPlayer playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
transferStackInSlot
in class Container