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 anz
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 Lanz;a:Laqn;
      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 Lanz;b:Laog;
      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 Lanz;c:Laxf;
      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 Lanz;d:Lij;
      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> Lanz;<init>(Laog;Lij;)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

      @Nullable public PlayerEntity getCurrentCustomer()
      Specified by:
      getCurrentCustomer in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official M_ Laxd;M_()Laog;
      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(@Nullable PlayerEntity player)
      Specified by:
      setCurrentCustomer in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a_ Laxd;a_(Laog;)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

      @Nullable public TraderOfferList getOffers(PlayerEntity player)
      Specified by:
      getOffers in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official b_ Laxd;b_(Laog;)Laxf;
      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(@Nullable TraderOfferList list)
      Specified by:
      setTraderOfferList in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official a Laxd;a(Laxf;)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 Laxd;a(Laxe;)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 Laxd;a(Late;)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 O Laxd;O()Lij;
      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;
    • method_13682

      public World method_13682()
      Specified by:
      method_13682 in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official c Laxd;c()Laxy;
      intermediary method_13682 Lnet/minecraft/class_1143;method_13682()Lnet/minecraft/class_1150;
      named method_13682 Lnet/minecraft/entity/data/Trader;method_13682()Lnet/minecraft/world/World;
    • method_13683

      public BlockPos method_13683()
      Specified by:
      method_13683 in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official d Laxd;d()Lel;
      intermediary method_13683 Lnet/minecraft/class_1143;method_13683()Lnet/minecraft/class_2552;
      named method_13683 Lnet/minecraft/entity/data/Trader;method_13683()Lnet/minecraft/util/math/BlockPos;