Class Merchant

java.lang.Object
net.minecraft.entity.data.Merchant
All Implemented Interfaces:
Trader

@Environment(CLIENT)
public class Merchant
extends Object
implements Trader
Mappings:
Namespace Name
official wg
intermediary net/minecraft/class_1951
named net/minecraft/entity/data/Merchant
  • Field Details

    • inventory

      private TraderInventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lwg;a:Lya;
      intermediary field_8276 Lnet/minecraft/class_1951;field_8276:Lnet/minecraft/class_2004;
      named inventory Lnet/minecraft/entity/data/Merchant;inventory:Lnet/minecraft/village/TraderInventory;
    • player

      private PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lwg;b:Lwn;
      intermediary field_8277 Lnet/minecraft/class_1951;field_8277:Lnet/minecraft/class_1963;
      named player Lnet/minecraft/entity/data/Merchant;player:Lnet/minecraft/entity/player/PlayerEntity;
    • list

      private TraderOfferList list
      Mappings:
      Namespace Name Mixin selector
      official c Lwg;c:Lada;
      intermediary field_8278 Lnet/minecraft/class_1951;field_8278:Lnet/minecraft/class_86;
      named list Lnet/minecraft/entity/data/Merchant;list:Lnet/minecraft/village/TraderOfferList;
    • name

      private Text name
      Mappings:
      Namespace Name Mixin selector
      official d Lwg;d:Leu;
      intermediary field_8279 Lnet/minecraft/class_1951;field_8279:Lnet/minecraft/class_1444;
      named name Lnet/minecraft/entity/data/Merchant;name:Lnet/minecraft/text/Text;
  • Constructor Details

    • Merchant

      public Merchant​(PlayerEntity player, Text name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwg;<init>(Lwn;Leu;)V
      intermediary <init> Lnet/minecraft/class_1951;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_1444;)V
      named <init> Lnet/minecraft/entity/data/Merchant;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)V
  • Method Details

    • getCurrentCustomer

      public PlayerEntity getCurrentCustomer()
      Specified by:
      getCurrentCustomer in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official v_ Lacy;v_()Lwn;
      intermediary method_134 Lnet/minecraft/class_83;method_134()Lnet/minecraft/class_1963;
      named getCurrentCustomer Lnet/minecraft/entity/data/Trader;getCurrentCustomer()Lnet/minecraft/entity/player/PlayerEntity;
    • setCurrentCustomer

      public void setCurrentCustomer​(PlayerEntity player)
      Specified by:
      setCurrentCustomer in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a_ Lacy;a_(Lwn;)V
      intermediary method_130 Lnet/minecraft/class_83;method_130(Lnet/minecraft/class_1963;)V
      named setCurrentCustomer Lnet/minecraft/entity/data/Trader;setCurrentCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
    • getOffers

      public TraderOfferList getOffers​(PlayerEntity player)
      Specified by:
      getOffers in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official b_ Lacy;b_(Lwn;)Lada;
      intermediary method_132 Lnet/minecraft/class_83;method_132(Lnet/minecraft/class_1963;)Lnet/minecraft/class_86;
      named getOffers Lnet/minecraft/entity/data/Trader;getOffers(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/village/TraderOfferList;
    • setTraderOfferList

      public void setTraderOfferList​(TraderOfferList list)
      Specified by:
      setTraderOfferList in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a Lacy;a(Lada;)V
      intermediary method_129 Lnet/minecraft/class_83;method_129(Lnet/minecraft/class_86;)V
      named setTraderOfferList Lnet/minecraft/entity/data/Trader;setTraderOfferList(Lnet/minecraft/village/TraderOfferList;)V
    • trade

      public void trade​(TradeOffer offer)
      Specified by:
      trade in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a Lacy;a(Lacz;)V
      intermediary method_128 Lnet/minecraft/class_83;method_128(Lnet/minecraft/class_84;)V
      named trade Lnet/minecraft/entity/data/Trader;trade(Lnet/minecraft/village/TradeOffer;)V
    • method_131

      public void method_131​(ItemStack stack)
      Specified by:
      method_131 in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a_ Lacy;a_(Lzx;)V
      intermediary method_131 Lnet/minecraft/class_83;method_131(Lnet/minecraft/class_2056;)V
      named method_131 Lnet/minecraft/entity/data/Trader;method_131(Lnet/minecraft/item/ItemStack;)V
    • getName

      public Text getName()
      Specified by:
      getName in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official method_133 Lacy;method_133()Leu;
      intermediary method_133 Lnet/minecraft/class_83;method_133()Lnet/minecraft/class_1444;
      named getName Lnet/minecraft/entity/data/Trader;getName()Lnet/minecraft/text/Text;