Class MerchantContainer


  • public class MerchantContainer
    extends Container
    • Field Detail

      • merchantLevel

        private int merchantLevel
      • showProgressBar

        private boolean showProgressBar
      • canRestock

        private boolean canRestock
    • Constructor Detail

      • MerchantContainer

        public MerchantContainer​(int p_i50068_1_,
                                 PlayerInventory p_i50068_2_)
      • MerchantContainer

        public MerchantContainer​(int p_i50069_1_,
                                 PlayerInventory p_i50069_2_,
                                 IMerchant p_i50069_3_)
    • Method Detail

      • setShowProgressBar

        public void setShowProgressBar​(boolean p_217045_1_)
      • setSelectionHint

        public void setSelectionHint​(int p_75175_1_)
      • getTraderXp

        public int getTraderXp()
      • getFutureTraderXp

        public int getFutureTraderXp()
      • setXp

        public void setXp​(int p_217052_1_)
      • getTraderLevel

        public int getTraderLevel()
      • setMerchantLevel

        public void setMerchantLevel​(int p_217043_1_)
      • setCanRestock

        public void setCanRestock​(boolean p_223431_1_)
      • canRestock

        public boolean canRestock()
      • playTradeSound

        private void playTradeSound()
      • tryMoveItems

        public void tryMoveItems​(int p_217046_1_)
      • moveFromInventoryToPaymentSlot

        private void moveFromInventoryToPaymentSlot​(int p_217053_1_,
                                                    ItemStack p_217053_2_)
      • isSameItem

        private boolean isSameItem​(ItemStack p_217050_1_,
                                   ItemStack p_217050_2_)
      • showProgressBar

        public boolean showProgressBar()