public class ContainerEnchantment extends Container
Modifier and Type | Field and Description |
---|---|
int[] |
enchantClue |
int[] |
enchantLevels |
private BlockPos |
position |
private java.util.Random |
rand |
IInventory |
tableInventory |
int[] |
worldClue |
private World |
worldPointer |
int |
xpSeed |
inventoryItemStacks, inventorySlots, listeners, windowId
Constructor and Description |
---|
ContainerEnchantment(InventoryPlayer playerInv,
World worldIn) |
ContainerEnchantment(InventoryPlayer playerInv,
World worldIn,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IContainerListener listener) |
protected void |
broadcastData(IContainerListener crafting) |
boolean |
canInteractWith(EntityPlayer playerIn) |
void |
detectAndSendChanges() |
boolean |
enchantItem(EntityPlayer playerIn,
int id) |
private java.util.List<EnchantmentData> |
getEnchantmentList(ItemStack stack,
int enchantSlot,
int level) |
int |
getLapisAmount() |
void |
onContainerClosed(EntityPlayer playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index) |
void |
updateProgressBar(int id,
int data) |
addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClick
public IInventory tableInventory
private final World worldPointer
private final BlockPos position
private final java.util.Random rand
public int xpSeed
public int[] enchantLevels
public int[] enchantClue
public int[] worldClue
public ContainerEnchantment(InventoryPlayer playerInv, World worldIn)
public ContainerEnchantment(InventoryPlayer playerInv, World worldIn, BlockPos pos)
protected void broadcastData(IContainerListener crafting)
public void addListener(IContainerListener listener)
addListener
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
private java.util.List<EnchantmentData> getEnchantmentList(ItemStack stack, int enchantSlot, int level)
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