类 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 p_40033_, Inventory p_40034_)
    • MerchantMenu

      public MerchantMenu(int p_40036_, Inventory p_40037_, Merchant p_40038_)
  • 方法详细资料

    • setShowProgressBar

      public void setShowProgressBar(boolean p_40049_)
    • slotsChanged

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

      public void setSelectionHint(int p_40064_)
    • stillValid

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

      public int getTraderXp()
    • getFutureTraderXp

      public int getFutureTraderXp()
    • setXp

      public void setXp(int p_40067_)
    • getTraderLevel

      public int getTraderLevel()
    • setMerchantLevel

      public void setMerchantLevel(int p_40070_)
    • setCanRestock

      public void setCanRestock(boolean p_40059_)
    • canRestock

      public boolean canRestock()
    • canTakeItemForPickAll

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

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

      private void playTradeSound()
    • removed

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

      public void tryMoveItems(int p_40073_)
    • moveFromInventoryToPaymentSlot

      private void moveFromInventoryToPaymentSlot(int p_40061_, ItemCost p_331779_)
    • setOffers

      public void setOffers(MerchantOffers p_40047_)
    • getOffers

      public MerchantOffers getOffers()
    • showProgressBar

      public boolean showProgressBar()