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 zl
intermediary net/minecraft/class_983
named net/minecraft/entity/data/Merchant
  • Field Details

    • inventory

      private final TraderInventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lzl;a:Labw;
      intermediary field_3942 Lnet/minecraft/class_983;field_3942:Lnet/minecraft/class_1020;
      named inventory Lnet/minecraft/entity/data/Merchant;inventory:Lnet/minecraft/village/TraderInventory;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lzl;b:Lzs;
      intermediary field_3943 Lnet/minecraft/class_983;field_3943:Lnet/minecraft/class_988;
      named player Lnet/minecraft/entity/data/Merchant;player:Lnet/minecraft/entity/player/PlayerEntity;
    • list

      private TraderOfferList list
      Mappings:
      Namespace Name Mixin selector
      official c Lzl;c:Lahq;
      intermediary field_3944 Lnet/minecraft/class_983;field_3944:Lnet/minecraft/class_1145;
      named list Lnet/minecraft/entity/data/Merchant;list:Lnet/minecraft/village/TraderOfferList;
    • name

      private final Text name
      Mappings:
      Namespace Name Mixin selector
      official d Lzl;d:Ley;
      intermediary field_12105 Lnet/minecraft/class_983;field_12105:Lnet/minecraft/class_1982;
      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> Lzl;<init>(Lzs;Ley;)V
      intermediary <init> Lnet/minecraft/class_983;<init>(Lnet/minecraft/class_988;Lnet/minecraft/class_1982;)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 t_ Laho;t_()Lzs;
      intermediary method_3546 Lnet/minecraft/class_1143;method_3546()Lnet/minecraft/class_988;
      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_ Laho;a_(Lzs;)V
      intermediary method_3544 Lnet/minecraft/class_1143;method_3544(Lnet/minecraft/class_988;)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_ Laho;b_(Lzs;)Lahq;
      intermediary method_3545 Lnet/minecraft/class_1143;method_3545(Lnet/minecraft/class_988;)Lnet/minecraft/class_1145;
      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 Laho;a(Lahq;)V
      intermediary method_3543 Lnet/minecraft/class_1143;method_3543(Lnet/minecraft/class_1145;)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 Laho;a(Lahp;)V
      intermediary method_3542 Lnet/minecraft/class_1143;method_3542(Lnet/minecraft/class_1144;)V
      named trade Lnet/minecraft/entity/data/Trader;trade(Lnet/minecraft/village/TradeOffer;)V
    • method_5501

      public void method_5501(ItemStack stack)
      Specified by:
      method_5501 in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a Laho;a(Ladz;)V
      intermediary method_5501 Lnet/minecraft/class_1143;method_5501(Lnet/minecraft/class_1071;)V
      named method_5501 Lnet/minecraft/entity/data/Trader;method_5501(Lnet/minecraft/item/ItemStack;)V
    • method_6344

      public Text method_6344()
      Specified by:
      method_6344 in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official i_ Laho;i_()Ley;
      intermediary method_6344 Lnet/minecraft/class_1143;method_6344()Lnet/minecraft/class_1982;
      named method_6344 Lnet/minecraft/entity/data/Trader;method_6344()Lnet/minecraft/text/Text;