Class SimpleMerchant

java.lang.Object
net.minecraft.village.SimpleMerchant
All Implemented Interfaces:
Merchant

public class SimpleMerchant extends Object implements Merchant
Mappings:
Namespace Name
named net/minecraft/village/SimpleMerchant
intermediary net/minecraft/class_1645
official cpf
  • Field Details

    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      named player Lnet/minecraft/village/SimpleMerchant;player:Lnet/minecraft/entity/player/PlayerEntity;
      intermediary field_7441 Lnet/minecraft/class_1645;field_7441:Lnet/minecraft/class_1657;
      official a Lcpf;a:Lcpw;
    • offers

      private TradeOfferList offers
      Mappings:
      Namespace Name Mixin selector
      named offers Lnet/minecraft/village/SimpleMerchant;offers:Lnet/minecraft/village/TradeOfferList;
      intermediary field_7442 Lnet/minecraft/class_1645;field_7442:Lnet/minecraft/class_1916;
      official b Lcpf;b:Ldgf;
    • experience

      private int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/SimpleMerchant;experience:I
      intermediary field_18525 Lnet/minecraft/class_1645;field_18525:I
      official c Lcpf;c:I
  • Constructor Details

    • SimpleMerchant

      public SimpleMerchant(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/SimpleMerchant;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary <init> Lnet/minecraft/class_1645;<init>(Lnet/minecraft/class_1657;)V
      official <init> Lcpf;<init>(Lcpw;)V
  • Method Details

    • getCustomer

      public PlayerEntity getCustomer()
      Specified by:
      getCustomer in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named getCustomer Lnet/minecraft/village/Merchant;getCustomer()Lnet/minecraft/entity/player/PlayerEntity;
      intermediary method_8257 Lnet/minecraft/class_1915;method_8257()Lnet/minecraft/class_1657;
      official go Ldgd;go()Lcpw;
    • setCustomer

      public void setCustomer(@Nullable @Nullable PlayerEntity customer)
      Specified by:
      setCustomer in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named setCustomer Lnet/minecraft/village/Merchant;setCustomer(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_8259 Lnet/minecraft/class_1915;method_8259(Lnet/minecraft/class_1657;)V
      official a Ldgd;a(Lcpw;)V
    • getOffers

      public TradeOfferList getOffers()
      Specified by:
      getOffers in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named getOffers Lnet/minecraft/village/Merchant;getOffers()Lnet/minecraft/village/TradeOfferList;
      intermediary method_8264 Lnet/minecraft/class_1915;method_8264()Lnet/minecraft/class_1916;
      official gq Ldgd;gq()Ldgf;
    • setOffersFromServer

      public void setOffersFromServer(TradeOfferList offers)
      Specified by:
      setOffersFromServer in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named setOffersFromServer Lnet/minecraft/village/Merchant;setOffersFromServer(Lnet/minecraft/village/TradeOfferList;)V
      intermediary method_8261 Lnet/minecraft/class_1915;method_8261(Lnet/minecraft/class_1916;)V
      official a Ldgd;a(Ldgf;)V
    • trade

      public void trade(TradeOffer offer)
      Specified by:
      trade in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named trade Lnet/minecraft/village/Merchant;trade(Lnet/minecraft/village/TradeOffer;)V
      intermediary method_8262 Lnet/minecraft/class_1915;method_8262(Lnet/minecraft/class_1914;)V
      official a Ldgd;a(Ldge;)V
    • onSellingItem

      public void onSellingItem(ItemStack stack)
      Specified by:
      onSellingItem in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named onSellingItem Lnet/minecraft/village/Merchant;onSellingItem(Lnet/minecraft/item/ItemStack;)V
      intermediary method_8258 Lnet/minecraft/class_1915;method_8258(Lnet/minecraft/class_1799;)V
      official i Ldgd;i(Lcxo;)V
    • isClient

      public boolean isClient()
      Specified by:
      isClient in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named isClient Lnet/minecraft/village/Merchant;isClient()Z
      intermediary method_38069 Lnet/minecraft/class_1915;method_38069()Z
      official gw Ldgd;gw()Z
    • getExperience

      public int getExperience()
      Specified by:
      getExperience in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named getExperience Lnet/minecraft/village/Merchant;getExperience()I
      intermediary method_19269 Lnet/minecraft/class_1915;method_19269()I
      official x Ldgd;x()I
    • setExperienceFromServer

      public void setExperienceFromServer(int experience)
      Specified by:
      setExperienceFromServer in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named setExperienceFromServer Lnet/minecraft/village/Merchant;setExperienceFromServer(I)V
      intermediary method_19271 Lnet/minecraft/class_1915;method_19271(I)V
      official s Ldgd;s(I)V
    • isLeveledMerchant

      public boolean isLeveledMerchant()
      Specified by:
      isLeveledMerchant in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named isLeveledMerchant Lnet/minecraft/village/Merchant;isLeveledMerchant()Z
      intermediary method_19270 Lnet/minecraft/class_1915;method_19270()Z
      official gr Ldgd;gr()Z
    • getYesSound

      public SoundEvent getYesSound()
      Specified by:
      getYesSound in interface Merchant
      Mappings:
      Namespace Name Mixin selector
      named getYesSound Lnet/minecraft/village/Merchant;getYesSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_18010 Lnet/minecraft/class_1915;method_18010()Lnet/minecraft/class_3414;
      official gs Ldgd;gs()Laxe;