public class EnchantmentContainer extends Container
修飾子とタイプ | フィールドと説明 |
---|---|
int[] |
enchantClue |
int[] |
enchantLevels |
int[] |
worldClue |
inventorySlots, windowId
コンストラクタと説明 |
---|
EnchantmentContainer(int p_i50085_1_,
PlayerInventory p_i50085_2_) |
EnchantmentContainer(int p_i50086_1_,
PlayerInventory p_i50086_2_,
IWorldPosCallable p_i50086_3_) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn)
Determines whether supplied player can use this container
|
boolean |
enchantItem(PlayerEntity playerIn,
int id)
Handles the given Button-click on the server, currently only used by enchanting.
|
int |
func_217005_f() |
int |
getLapisAmount() |
void |
onContainerClosed(PlayerEntity playerIn)
Called when the container is closed.
|
void |
onCraftMatrixChanged(IInventory inventoryIn)
Callback for when the crafting matrix is changed.
|
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
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
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
クラス内 Container
public boolean enchantItem(PlayerEntity playerIn, int id)
enchantItem
クラス内 Container
public int getLapisAmount()
public int func_217005_f()
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
クラス内 Container
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
クラス内 Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
index
is shift-clicked. Normally this moves the stack between the player
inventory and the other inventory(s).transferStackInSlot
クラス内 Container