Class MerchantMenu

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

public class MerchantMenu extends AbstractContainerMenu
  • Field Details

  • Constructor Details

    • MerchantMenu

      public MerchantMenu(int p_40033_, Inventory p_40034_)
    • MerchantMenu

      public MerchantMenu(int p_40036_, Inventory p_40037_, Merchant p_40038_)
  • Method Details

    • setShowProgressBar

      public void setShowProgressBar(boolean p_40049_)
    • slotsChanged

      public void slotsChanged(Container p_40040_)
      Overrides:
      slotsChanged in class AbstractContainerMenu
    • setSelectionHint

      public void setSelectionHint(int p_40064_)
    • stillValid

      public boolean stillValid(Player p_40042_)
      Specified by:
      stillValid in class 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_)
      Overrides:
      canTakeItemForPickAll in class AbstractContainerMenu
    • quickMoveStack

      public ItemStack quickMoveStack(Player p_40053_, int p_40054_)
      Specified by:
      quickMoveStack in class AbstractContainerMenu
    • playTradeSound

      private void playTradeSound()
    • removed

      public void removed(Player p_40051_)
      Overrides:
      removed in class AbstractContainerMenu
    • tryMoveItems

      public void tryMoveItems(int p_40073_)
    • moveFromInventoryToPaymentSlot

      private void moveFromInventoryToPaymentSlot(int p_40061_, ItemStack p_40062_)
    • setOffers

      public void setOffers(MerchantOffers p_40047_)
    • getOffers

      public MerchantOffers getOffers()
    • showProgressBar

      public boolean showProgressBar()