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

    • inventory

      private TraderInventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lagn;a:Laje;
      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 PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official b Lagn;b:Lahd;
      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 Lagn;c:Laqd;
      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 Text name
      Mappings:
      Namespace Name Mixin selector
      official d Lagn;d:Lho;
      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> Lagn;<init>(Lahd;Lho;)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 u_ Laqb;u_()Lahd;
      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_ Laqb;a_(Lahd;)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_ Laqb;b_(Lahd;)Laqd;
      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 Laqb;a(Laqd;)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 Laqb;a(Laqc;)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_ Laqb;a_(Lamj;)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 e_ Laqb;e_()Lho;
      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;