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
named net/minecraft/village/TradeOffers$ProcessItemFactory
intermediary net/minecraft/class_3853$class_4164
official cmp$h
  • Field Details

    • toBeProcessed

      private final TradedItem toBeProcessed
      Mappings:
      Namespace Name Mixin selector
      named toBeProcessed Lnet/minecraft/village/TradeOffers$ProcessItemFactory;toBeProcessed:Lnet/minecraft/village/TradedItem;
      intermediary field_18563 Lnet/minecraft/class_3853$class_4164;field_18563:Lnet/minecraft/class_9306;
      official a Lcmp$h;a:Ldav;
    • price

      private final int price
      Mappings:
      Namespace Name Mixin selector
      named price Lnet/minecraft/village/TradeOffers$ProcessItemFactory;price:I
      intermediary field_18565 Lnet/minecraft/class_3853$class_4164;field_18565:I
      official b Lcmp$h;b:I
    • processed

      private final ItemStack processed
      Mappings:
      Namespace Name Mixin selector
      named processed Lnet/minecraft/village/TradeOffers$ProcessItemFactory;processed:Lnet/minecraft/item/ItemStack;
      intermediary field_18566 Lnet/minecraft/class_3853$class_4164;field_18566:Lnet/minecraft/class_1799;
      official c Lcmp$h;c:Lcuq;
    • maxUses

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

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

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

    • ProcessItemFactory

      public ProcessItemFactory(ItemConvertible item, int count, int price, Item processed, int processedCount, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/Item;IIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1792;IIIF)V
      official <init> Lcmp$h;<init>(Ldby;IILcul;IIIF)V
    • ProcessItemFactory

      ProcessItemFactory(ItemConvertible item, int count, int price, ItemStack processed, int processedCount, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/ItemStack;IIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1799;IIIF)V
      official <init> Lcmp$h;<init>(Ldby;IILcuq;IIIF)V
    • ProcessItemFactory

      public ProcessItemFactory(TradedItem toBeProcessed, int count, ItemStack processed, int maxUses, int processedCount, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/village/TradedItem;ILnet/minecraft/item/ItemStack;IIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_9306;ILnet/minecraft/class_1799;IIF)V
      official <init> Lcmp$h;<init>(Ldav;ILcuq;IIF)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
      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 Lcmp$g;a(Lbsv;Lazh;)Ldax;