Package net.minecraft.village
Class SimpleMerchant
java.lang.Object
net.minecraft.village.SimpleMerchant
- All Implemented Interfaces:
Merchant
public class SimpleMerchant extends Object implements Merchant
- Mappings:
Namespace Name official bgv
intermediary net/minecraft/class_1645
named net/minecraft/village/SimpleMerchant
-
Field Summary
Fields Modifier and Type Field Description private int
experience
private PlayerEntity
player
private TradeOfferList
recipeList
-
Constructor Summary
Constructors Constructor Description SimpleMerchant(PlayerEntity player)
-
Method Summary
Modifier and Type Method Description PlayerEntity
getCurrentCustomer()
int
getExperience()
World
getMerchantWorld()
TradeOfferList
getOffers()
SoundEvent
getYesSound()
boolean
isLeveledMerchant()
void
onSellingItem(ItemStack stack)
void
setCurrentCustomer(PlayerEntity customer)
void
setExperienceFromServer(int experience)
void
setOffersFromServer(TradeOfferList offers)
void
trade(TradeOffer offer)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.village.Merchant
canRefreshTrades, sendOffers
-
Field Details
-
player
- Mappings:
Namespace Name Mixin selector official a
Lbgv;a:Lbhl;
intermediary field_7441
Lnet/minecraft/class_1645;field_7441:Lnet/minecraft/class_1657;
named player
Lnet/minecraft/village/SimpleMerchant;player:Lnet/minecraft/entity/player/PlayerEntity;
-
recipeList
- Mappings:
Namespace Name Mixin selector official b
Lbgv;b:Lbst;
intermediary field_7442
Lnet/minecraft/class_1645;field_7442:Lnet/minecraft/class_1916;
named recipeList
Lnet/minecraft/village/SimpleMerchant;recipeList:Lnet/minecraft/village/TradeOfferList;
-
experience
private int experience- Mappings:
Namespace Name Mixin selector official c
Lbgv;c:I
intermediary field_18525
Lnet/minecraft/class_1645;field_18525:I
named experience
Lnet/minecraft/village/SimpleMerchant;experience:I
-
-
Constructor Details
-
SimpleMerchant
- Mappings:
Namespace Name Mixin selector official <init>
Lbgv;<init>(Lbhl;)V
intermediary <init>
Lnet/minecraft/class_1645;<init>(Lnet/minecraft/class_1657;)V
named <init>
Lnet/minecraft/village/SimpleMerchant;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
-
-
Method Details
-
getCurrentCustomer
- Specified by:
getCurrentCustomer
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official fl
Lbsr;fl()Lbhl;
intermediary method_8257
Lnet/minecraft/class_1915;method_8257()Lnet/minecraft/class_1657;
named getCurrentCustomer
Lnet/minecraft/village/Merchant;getCurrentCustomer()Lnet/minecraft/entity/player/PlayerEntity;
-
setCurrentCustomer
- Specified by:
setCurrentCustomer
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official f
Lbsr;f(Lbhl;)V
intermediary method_8259
Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)V
named setCurrentCustomer
Lnet/minecraft/village/Merchant;setCurrentCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
-
getOffers
- Specified by:
getOffers
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official fn
Lbsr;fn()Lbst;
intermediary method_8264
Lnet/minecraft/class_1915;method_8264()Lnet/minecraft/class_1916;
named getOffers
Lnet/minecraft/village/Merchant;getOffers()Lnet/minecraft/village/TradeOfferList;
-
setOffersFromServer
- Specified by:
setOffersFromServer
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official a
Lbsr;a(Lbst;)V
intermediary method_8261
Lnet/minecraft/class_1915;method_8261(Lnet/minecraft/class_1916;)V
named setOffersFromServer
Lnet/minecraft/village/Merchant;setOffersFromServer(Lnet/minecraft/village/TradeOfferList;)V
-
trade
-
onSellingItem
- Specified by:
onSellingItem
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official k
Lbsr;k(Lbnv;)V
intermediary method_8258
Lnet/minecraft/class_1915;method_8258(Lnet/minecraft/class_1799;)V
named onSellingItem
Lnet/minecraft/village/Merchant;onSellingItem(Lnet/minecraft/item/ItemStack;)V
-
getMerchantWorld
- Specified by:
getMerchantWorld
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official ft
Lbsr;ft()Lbtv;
intermediary method_8260
Lnet/minecraft/class_1915;method_8260()Lnet/minecraft/class_1937;
named getMerchantWorld
Lnet/minecraft/village/Merchant;getMerchantWorld()Lnet/minecraft/world/World;
-
getExperience
public int getExperience()- Specified by:
getExperience
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official r
Lbsr;r()I
intermediary method_19269
Lnet/minecraft/class_1915;method_19269()I
named getExperience
Lnet/minecraft/village/Merchant;getExperience()I
-
setExperienceFromServer
public void setExperienceFromServer(int experience)- Specified by:
setExperienceFromServer
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official u
Lbsr;u(I)V
intermediary method_19271
Lnet/minecraft/class_1915;method_19271(I)V
named setExperienceFromServer
Lnet/minecraft/village/Merchant;setExperienceFromServer(I)V
-
isLeveledMerchant
public boolean isLeveledMerchant()- Specified by:
isLeveledMerchant
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official fo
Lbsr;fo()Z
intermediary method_19270
Lnet/minecraft/class_1915;method_19270()Z
named isLeveledMerchant
Lnet/minecraft/village/Merchant;isLeveledMerchant()Z
-
getYesSound
- Specified by:
getYesSound
in interfaceMerchant
- Mappings:
Namespace Name Mixin selector official fp
Lbsr;fp()Laef;
intermediary method_18010
Lnet/minecraft/class_1915;method_18010()Lnet/minecraft/class_3414;
named getYesSound
Lnet/minecraft/village/Merchant;getYesSound()Lnet/minecraft/sound/SoundEvent;
-