Class TradeOffers.ProcessItemFactory

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

private static class TradeOffers.ProcessItemFactory extends Object implements TradeOffers.Factory
Mappings:
Namespace Name
official bni$g
intermediary net/minecraft/class_3853$class_4164
named net/minecraft/village/TradeOffers$ProcessItemFactory
  • Field Details

    • secondBuy

      private final ItemStack secondBuy
      Mappings:
      Namespace Name Mixin selector
      official a Lbni$g;a:Lbue;
      intermediary field_18563 Lnet/minecraft/class_3853$class_4164;field_18563:Lnet/minecraft/class_1799;
      named secondBuy Lnet/minecraft/village/TradeOffers$ProcessItemFactory;secondBuy:Lnet/minecraft/item/ItemStack;
    • secondCount

      private final int secondCount
      Mappings:
      Namespace Name Mixin selector
      official b Lbni$g;b:I
      intermediary field_18564 Lnet/minecraft/class_3853$class_4164;field_18564:I
      named secondCount Lnet/minecraft/village/TradeOffers$ProcessItemFactory;secondCount:I
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      official c Lbni$g;c:I
      intermediary field_18565 Lnet/minecraft/class_3853$class_4164;field_18565:I
      named price Lnet/minecraft/village/TradeOffers$ProcessItemFactory;price:I
    • sell

      private final ItemStack sell
      Mappings:
      Namespace Name Mixin selector
      official d Lbni$g;d:Lbue;
      intermediary field_18566 Lnet/minecraft/class_3853$class_4164;field_18566:Lnet/minecraft/class_1799;
      named sell Lnet/minecraft/village/TradeOffers$ProcessItemFactory;sell:Lnet/minecraft/item/ItemStack;
    • sellCount

      private final int sellCount
      Mappings:
      Namespace Name Mixin selector
      official e Lbni$g;e:I
      intermediary field_18567 Lnet/minecraft/class_3853$class_4164;field_18567:I
      named sellCount Lnet/minecraft/village/TradeOffers$ProcessItemFactory;sellCount:I
    • maxUses

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official f Lbni$g;f:I
      intermediary field_18568 Lnet/minecraft/class_3853$class_4164;field_18568:I
      named maxUses Lnet/minecraft/village/TradeOffers$ProcessItemFactory;maxUses:I
    • experience

      private final int experience
      Mappings:
      Namespace Name Mixin selector
      official g Lbni$g;g:I
      intermediary field_18569 Lnet/minecraft/class_3853$class_4164;field_18569:I
      named experience Lnet/minecraft/village/TradeOffers$ProcessItemFactory;experience:I
    • multiplier

      private final float multiplier
      Mappings:
      Namespace Name Mixin selector
      official h Lbni$g;h:F
      intermediary field_18570 Lnet/minecraft/class_3853$class_4164;field_18570:F
      named multiplier Lnet/minecraft/village/TradeOffers$ProcessItemFactory;multiplier:F
  • Constructor Details

    • ProcessItemFactory

      public ProcessItemFactory(ItemConvertible item, int secondCount, Item sellItem, int sellCount, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbni$g;<init>(Lcac;ILbua;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;ILnet/minecraft/class_1792;III)V
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;ILnet/minecraft/item/Item;III)V
    • ProcessItemFactory

      public ProcessItemFactory(ItemConvertible item, int secondCount, int price, Item sellItem, int sellCount, int maxUses, int experience)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbni$g;<init>(Lcac;IILbua;III)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1792;III)V
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/Item;III)V
  • Method Details

    • create

      @Nullable public @Nullable 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
      official a Lbni$f;a(Lawt;Ljava/util/Random;)Lbzb;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Ljava/util/Random;)Lnet/minecraft/class_1914;
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Ljava/util/Random;)Lnet/minecraft/village/TradeOffer;