Class TradeOffers.SellPotionHoldingItemFactory

java.lang.Object
net.minecraft.village.TradeOffers.SellPotionHoldingItemFactory
All Implemented Interfaces:
TradeOffers.Factory
Enclosing class:
TradeOffers

private static class TradeOffers.SellPotionHoldingItemFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
named net/minecraft/village/TradeOffers$SellPotionHoldingItemFactory
intermediary net/minecraft/class_3853$class_4167
official cmm$k
  • Field Details

    • sell

      private final ItemStack sell
      Mappings:
      Namespace Name Mixin selector
      named sell Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;sell:Lnet/minecraft/item/ItemStack;
      intermediary field_18581 Lnet/minecraft/class_3853$class_4167;field_18581:Lnet/minecraft/class_1799;
      official a Lcmm$k;a:Lcuo;
    • sellCount

      private final int sellCount
      Mappings:
      Namespace Name Mixin selector
      named sellCount Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;sellCount:I
      intermediary field_18582 Lnet/minecraft/class_3853$class_4167;field_18582:I
      official b Lcmm$k;b:I
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      named price Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;price:I
      intermediary field_18583 Lnet/minecraft/class_3853$class_4167;field_18583:I
      official c Lcmm$k;c:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      named maxUses Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;maxUses:I
      intermediary field_18584 Lnet/minecraft/class_3853$class_4167;field_18584:I
      official d Lcmm$k;d:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;experience:I
      intermediary field_18585 Lnet/minecraft/class_3853$class_4167;field_18585:I
      official e Lcmm$k;e:I
    • secondBuy

      private final Item secondBuy
      Mappings:
      Namespace Name Mixin selector
      named secondBuy Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;secondBuy:Lnet/minecraft/item/Item;
      intermediary field_18586 Lnet/minecraft/class_3853$class_4167;field_18586:Lnet/minecraft/class_1792;
      official f Lcmm$k;f:Lcuj;
    • secondCount

      private final int secondCount
      Mappings:
      Namespace Name Mixin selector
      named secondCount Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;secondCount:I
      intermediary field_18587 Lnet/minecraft/class_3853$class_4167;field_18587:I
      official g Lcmm$k;g:I
    • priceMultiplier

      private final float priceMultiplier
      Mappings:
      Namespace Name Mixin selector
      named priceMultiplier Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;priceMultiplier:F
      intermediary field_18588 Lnet/minecraft/class_3853$class_4167;field_18588:F
      official h Lcmm$k;h:F
  • Constructor Details

    • SellPotionHoldingItemFactory

      public SellPotionHoldingItemFactory(Item arrow, int secondCount, Item tippedArrow, int sellCount, int price, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$SellPotionHoldingItemFactory;<init>(Lnet/minecraft/item/Item;ILnet/minecraft/item/Item;IIII)V
      intermediary <init> Lnet/minecraft/class_3853$class_4167;<init>(Lnet/minecraft/class_1792;ILnet/minecraft/class_1792;IIII)V
      official <init> Lcmm$k;<init>(Lcuj;ILcuj;IIII)V
  • Method Details

    • create

      public TradeOffer create(Entity entity, Random random)
      Creates a trade offer.
      Specified by:
      create in interface TradeOffers.Factory
      Returns:
      a new trade offer, or null if none should be created
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
      official a Lcmm$g;a(Lbsq;Layv;)Ldbs;