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

    • toBeProcessed

      private final ItemStack toBeProcessed
      Mappings:
      Namespace Name Mixin selector
      official a Lcbl$h;a:Lcjf;
      intermediary field_18563 Lnet/minecraft/class_3853$class_4164;field_18563:Lnet/minecraft/class_1799;
      named toBeProcessed Lnet/minecraft/village/TradeOffers$ProcessItemFactory;toBeProcessed:Lnet/minecraft/item/ItemStack;
    • price

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

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

      private final int maxUses
      Mappings:
      Namespace Name Mixin selector
      official d Lcbl$h;d: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 e Lcbl$h;e: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 f Lcbl$h;f: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 count, int price, Item processed, int processedCount, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbl$h;<init>(Lcpu;IILcja;IIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1792;IIIF)V
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/Item;IIIF)V
    • ProcessItemFactory

      public ProcessItemFactory(ItemConvertible item, int count, int price, ItemStack processed, int processedCount, int maxUses, int experience, float multiplier)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbl$h;<init>(Lcpu;IILcjf;IIIF)V
      intermediary <init> Lnet/minecraft/class_3853$class_4164;<init>(Lnet/minecraft/class_1935;IILnet/minecraft/class_1799;IIIF)V
      named <init> Lnet/minecraft/village/TradeOffers$ProcessItemFactory;<init>(Lnet/minecraft/item/ItemConvertible;IILnet/minecraft/item/ItemStack;IIIF)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 Lcbl$g;a(Lbiq;Lasc;)Lcot;
      intermediary method_7246 Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1914;
      named create Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/village/TradeOffer;