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 adw
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 Ladw;a:Lagj;
      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 Ladw;b:Laed;
      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 Ladw;c:Lamh;
      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 Ladw;d:Lhh;
      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> Ladw;<init>(Laed;Lhh;)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 t_ Lamf;t_()Laed;
      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_ Lamf;a_(Laed;)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_ Lamf;b_(Laed;)Lamh;
      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 Lamf;a(Lamh;)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 Lamf;a(Lamg;)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 Lamf;a(Laip;)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_ Lamf;i_()Lhh;
      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 u_ Lamf;u_()Lamu;
      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 v_ Lamf;v_()Let;
      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;