public class EnchantmentContainer extends Container
Modifier and Type | Field and Description |
---|---|
int[] |
enchantClue |
int[] |
enchantLevels |
private IWorldPosCallable |
field_217006_g |
private java.util.Random |
rand |
private IInventory |
tableInventory |
int[] |
worldClue |
private IntReferenceHolder |
xpSeed |
inventorySlots, windowId
Constructor and Description |
---|
EnchantmentContainer(int p_i50085_1_,
PlayerInventory p_i50085_2_) |
EnchantmentContainer(int p_i50086_1_,
PlayerInventory p_i50086_2_,
IWorldPosCallable p_i50086_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
enchantItem(PlayerEntity playerIn,
int id) |
int |
func_217005_f() |
private java.util.List<EnchantmentData> |
getEnchantmentList(ItemStack stack,
int enchantSlot,
int level) |
int |
getLapisAmount() |
private float |
getPower(World world,
BlockPos pos) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
private final IInventory tableInventory
private final IWorldPosCallable field_217006_g
private final java.util.Random rand
private final IntReferenceHolder xpSeed
public final int[] enchantLevels
public final int[] enchantClue
public final int[] worldClue
public EnchantmentContainer(int p_i50085_1_, PlayerInventory p_i50085_2_)
public EnchantmentContainer(int p_i50086_1_, PlayerInventory p_i50086_2_, IWorldPosCallable p_i50086_3_)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public boolean enchantItem(PlayerEntity playerIn, int id)
enchantItem
in class Container
private java.util.List<EnchantmentData> getEnchantmentList(ItemStack stack, int enchantSlot, int level)
public int getLapisAmount()
public int func_217005_f()
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container