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

    • inventory

      private TraderInventory inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lxe;a:Lzd;
      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 Lxe;b:Lxk;
      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 Lxe;c:Laez;
      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;
  • Constructor Details

  • Method Details

    • getCurrentCustomer

      public PlayerEntity getCurrentCustomer()
      Specified by:
      getCurrentCustomer in interface Trader
      Mappings:
      Namespace Name Mixin selector
      official b Laex;b()Lxk;
      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_ Laex;a_(Lxk;)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 Laex;b(Lxk;)Laez;
      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 Laex;a(Laez;)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 Laex;a(Laey;)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_ Laex;a_(Labo;)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