类 MerchantMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.MerchantMenu

public class MerchantMenu extends AbstractContainerMenu
  • 字段详细资料

    • PAYMENT1_SLOT

      protected static final int PAYMENT1_SLOT
      另请参阅:
    • PAYMENT2_SLOT

      protected static final int PAYMENT2_SLOT
      另请参阅:
    • RESULT_SLOT

      protected static final int RESULT_SLOT
      另请参阅:
    • INV_SLOT_START

      private static final int INV_SLOT_START
      另请参阅:
    • INV_SLOT_END

      private static final int INV_SLOT_END
      另请参阅:
    • USE_ROW_SLOT_START

      private static final int USE_ROW_SLOT_START
      另请参阅:
    • USE_ROW_SLOT_END

      private static final int USE_ROW_SLOT_END
      另请参阅:
    • SELLSLOT1_X

      private static final int SELLSLOT1_X
      另请参阅:
    • SELLSLOT2_X

      private static final int SELLSLOT2_X
      另请参阅:
    • BUYSLOT_X

      private static final int BUYSLOT_X
      另请参阅:
    • ROW_Y

      private static final int ROW_Y
      另请参阅:
    • trader

      private final Merchant trader
    • tradeContainer

      private final MerchantContainer tradeContainer
    • merchantLevel

      private int merchantLevel
    • showProgressBar

      private boolean showProgressBar
    • canRestock

      private boolean canRestock
  • 构造器详细资料

    • MerchantMenu

      public MerchantMenu(int pContainerId, Inventory pPlayerInventory)
    • MerchantMenu

      public MerchantMenu(int pContainerId, Inventory pPlayerInventory, Merchant pTrader)
  • 方法详细资料

    • setShowProgressBar

      public void setShowProgressBar(boolean pShowProgressBar)
    • slotsChanged

      public void slotsChanged(Container pInventory)
      覆盖:
      slotsChanged 在类中 AbstractContainerMenu
    • setSelectionHint

      public void setSelectionHint(int pCurrentRecipeIndex)
    • stillValid

      public boolean stillValid(Player pPlayer)
      指定者:
      stillValid 在类中 AbstractContainerMenu
    • getTraderXp

      public int getTraderXp()
    • getFutureTraderXp

      public int getFutureTraderXp()
    • setXp

      public void setXp(int pXp)
    • getTraderLevel

      public int getTraderLevel()
    • setMerchantLevel

      public void setMerchantLevel(int pLevel)
    • setCanRestock

      public void setCanRestock(boolean pCanRestock)
    • canRestock

      public boolean canRestock()
    • canTakeItemForPickAll

      public boolean canTakeItemForPickAll(ItemStack pStack, Slot pSlot)
      覆盖:
      canTakeItemForPickAll 在类中 AbstractContainerMenu
    • quickMoveStack

      public ItemStack quickMoveStack(Player pPlayer, int pIndex)
      指定者:
      quickMoveStack 在类中 AbstractContainerMenu
    • playTradeSound

      private void playTradeSound()
    • removed

      public void removed(Player pPlayer)
      覆盖:
      removed 在类中 AbstractContainerMenu
    • tryMoveItems

      public void tryMoveItems(int pSelectedMerchantRecipe)
    • moveFromInventoryToPaymentSlot

      private void moveFromInventoryToPaymentSlot(int pPaymentSlotIndex, ItemStack pPaymentSlot)
    • setOffers

      public void setOffers(MerchantOffers pOffers)
    • getOffers

      public MerchantOffers getOffers()
    • showProgressBar

      public boolean showProgressBar()