Package net.minecraft.entity.data
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 wgintermediary net/minecraft/class_1951named net/minecraft/entity/data/Merchant
-
Field Summary
Fields Modifier and Type Field Description private TraderInventoryinventoryprivate TraderOfferListlistprivate Textnameprivate PlayerEntityplayer -
Constructor Summary
Constructors Constructor Description Merchant(PlayerEntity player, Text name) -
Method Summary
Modifier and Type Method Description PlayerEntitygetCurrentCustomer()TextgetName()TraderOfferListgetOffers(PlayerEntity player)voidmethod_131(ItemStack stack)voidsetCurrentCustomer(PlayerEntity player)voidsetTraderOfferList(TraderOfferList list)voidtrade(TradeOffer offer)
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLwg;a:Lya;intermediary field_8276Lnet/minecraft/class_1951;field_8276:Lnet/minecraft/class_2004;named inventoryLnet/minecraft/entity/data/Merchant;inventory:Lnet/minecraft/village/TraderInventory;
-
player
- Mappings:
Namespace Name Mixin selector official bLwg;b:Lwn;intermediary field_8277Lnet/minecraft/class_1951;field_8277:Lnet/minecraft/class_1963;named playerLnet/minecraft/entity/data/Merchant;player:Lnet/minecraft/entity/player/PlayerEntity;
-
list
- Mappings:
Namespace Name Mixin selector official cLwg;c:Lada;intermediary field_8278Lnet/minecraft/class_1951;field_8278:Lnet/minecraft/class_86;named listLnet/minecraft/entity/data/Merchant;list:Lnet/minecraft/village/TraderOfferList;
-
name
- Mappings:
Namespace Name Mixin selector official dLwg;d:Leu;intermediary field_8279Lnet/minecraft/class_1951;field_8279:Lnet/minecraft/class_1444;named nameLnet/minecraft/entity/data/Merchant;name:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
Merchant
- Mappings:
Namespace Name Mixin selector official <init>Lwg;<init>(Lwn;Leu;)Vintermediary <init>Lnet/minecraft/class_1951;<init>(Lnet/minecraft/class_1963;Lnet/minecraft/class_1444;)Vnamed <init>Lnet/minecraft/entity/data/Merchant;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
getCurrentCustomer
- Specified by:
getCurrentCustomerin interfaceTrader- Mappings:
Namespace Name Mixin selector official v_Lacy;v_()Lwn;intermediary method_134Lnet/minecraft/class_83;method_134()Lnet/minecraft/class_1963;named getCurrentCustomerLnet/minecraft/entity/data/Trader;getCurrentCustomer()Lnet/minecraft/entity/player/PlayerEntity;
-
setCurrentCustomer
- Specified by:
setCurrentCustomerin interfaceTrader- Mappings:
Namespace Name Mixin selector official a_Lacy;a_(Lwn;)Vintermediary method_130Lnet/minecraft/class_83;method_130(Lnet/minecraft/class_1963;)Vnamed setCurrentCustomerLnet/minecraft/entity/data/Trader;setCurrentCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getOffers
- Specified by:
getOffersin interfaceTrader- Mappings:
Namespace Name Mixin selector official b_Lacy;b_(Lwn;)Lada;intermediary method_132Lnet/minecraft/class_83;method_132(Lnet/minecraft/class_1963;)Lnet/minecraft/class_86;named getOffersLnet/minecraft/entity/data/Trader;getOffers(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/village/TraderOfferList;
-
setTraderOfferList
- Specified by:
setTraderOfferListin interfaceTrader- Mappings:
Namespace Name Mixin selector official aLacy;a(Lada;)Vintermediary method_129Lnet/minecraft/class_83;method_129(Lnet/minecraft/class_86;)Vnamed setTraderOfferListLnet/minecraft/entity/data/Trader;setTraderOfferList(Lnet/minecraft/village/TraderOfferList;)V
-
trade
-
method_131
- Specified by:
method_131in interfaceTrader- Mappings:
Namespace Name Mixin selector official a_Lacy;a_(Lzx;)Vintermediary method_131Lnet/minecraft/class_83;method_131(Lnet/minecraft/class_2056;)Vnamed method_131Lnet/minecraft/entity/data/Trader;method_131(Lnet/minecraft/item/ItemStack;)V
-
getName
-