public class MerchantContainer extends Container
inventorySlots, windowId| コンストラクタと説明 | 
|---|
| MerchantContainer(int id,
                 PlayerInventory playerInventoryIn) | 
| MerchantContainer(int id,
                 PlayerInventory playerInventoryIn,
                 IMerchant merchantIn) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| boolean | canInteractWith(PlayerEntity playerIn)Determines whether supplied player can use this container | 
| boolean | canMergeSlot(ItemStack stack,
            Slot slotIn)Called to determine if the current slot is valid for the stack merging (double-click) code. | 
| boolean | func_217042_i() | 
| void | func_217045_a(boolean p_217045_1_) | 
| void | func_217046_g(int p_217046_1_) | 
| void | func_223431_b(boolean p_223431_1_) | 
| boolean | func_223432_h() | 
| int | getMerchantLevel() | 
| MerchantOffers | getOffers() | 
| int | getPendingExp() | 
| int | getXp() | 
| void | onContainerClosed(PlayerEntity playerIn)Called when the container is closed. | 
| void | onCraftMatrixChanged(IInventory inventoryIn)Callback for when the crafting matrix is changed. | 
| void | setClientSideOffers(MerchantOffers offers)net.minecraft.client.network.play.ClientPlayNetHandler uses this to set offers for the client side
 MerchantContainer | 
| void | setCurrentRecipeIndex(int currentRecipeIndex) | 
| void | setMerchantLevel(int level) | 
| void | setXp(int xp) | 
| ItemStack | transferStackInSlot(PlayerEntity playerIn,
                   int index)Handle when the stack in slot  indexis shift-clicked. | 
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarpublic MerchantContainer(int id,
                         PlayerInventory playerInventoryIn)
public MerchantContainer(int id,
                         PlayerInventory playerInventoryIn,
                         IMerchant merchantIn)
public void func_217045_a(boolean p_217045_1_)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged クラス内 Containerpublic void setCurrentRecipeIndex(int currentRecipeIndex)
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith クラス内 Containerpublic int getXp()
public int getPendingExp()
public void setXp(int xp)
public int getMerchantLevel()
public void setMerchantLevel(int level)
public void func_223431_b(boolean p_223431_1_)
public boolean func_223432_h()
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot クラス内 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 クラス内 Containerpublic void onContainerClosed(PlayerEntity playerIn)
onContainerClosed クラス内 Containerpublic void func_217046_g(int p_217046_1_)
public void setClientSideOffers(MerchantOffers offers)
public MerchantOffers getOffers()
public boolean func_217042_i()