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, updateProgressBarpublic 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 クラス内 Containerpublic boolean enchantItem(PlayerEntity playerIn, int id)
enchantItem クラス内 Containerpublic int getLapisAmount()
public int func_217005_f()
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed クラス内 Containerpublic boolean canInteractWith(PlayerEntity playerIn)
canInteractWith クラス内 Containerpublic 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