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 cmm$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 Lcmm$h;a:Ldbq;
    • 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 Lcmm$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 Lcmm$h;c:Lcuo;
    • 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 Lcmm$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 Lcmm$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 Lcmm$h;f:F
    • enchantmentProviderKey

      private final Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey
      Mappings:
      Namespace Name Mixin selector
      named enchantmentProviderKey Lnet/minecraft/village/TradeOffers$ProcessItemFactory;enchantmentProviderKey:Ljava/util/Optional;
      intermediary field_51618 Lnet/minecraft/class_3853$class_4164;field_51618:Ljava/util/Optional;
      official g Lcmm$h;g:Ljava/util/Optional;
  • 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> Lcmm$h;<init>(Ldct;IILcuj;IIIF)V
    • ProcessItemFactory

      private 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> Lcmm$h;<init>(Ldct;IILcuo;IIIF)V
    • ProcessItemFactory

      ProcessItemFactory(ItemConvertible item, int count, int price, ItemConvertible processed, int processedCount, int maxUses, int experience, float multiplier, RegistryKey<EnchantmentProvider> enchantmentProviderKey)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/ItemConvertible;IIIFLnet/minecraft/registry/RegistryKey;)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1935;IIIFLnet/minecraft/class_5321;)V
      official <init> Lcmm$h;<init>(Ldct;IILdct;IIIFLakp;)V
    • ProcessItemFactory

      public ProcessItemFactory(TradedItem toBeProcessed, int count, ItemStack processed, int maxUses, int processedCount, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/village/TradedItem;ILnet/minecraft/item/ItemStack;IIFLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_9306;ILnet/minecraft/class_1799;IIFLjava/util/Optional;)V
      official <init> Lcmm$h;<init>(Ldbq;ILcuo;IIFLjava/util/Optional;)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 Lcmm$g;a(Lbsq;Layv;)Ldbs;