Package net.minecraft.village
Class TradeOffers.ProcessItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.ProcessItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
TradeOffers
- Mappings:
Namespace Name named net/minecraft/village/TradeOffers$ProcessItemFactory
intermediary net/minecraft/class_3853$class_4164
official cpm$h
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional
<RegistryKey<EnchantmentProvider>> private final int
private final int
private final float
private final int
private final ItemStack
private final TradedItem
-
Constructor Summary
ModifierConstructorDescription(package private)
ProcessItemFactory
(ItemConvertible item, int count, int price, ItemConvertible processed, int processedCount, int maxUses, int experience, float multiplier, RegistryKey<EnchantmentProvider> enchantmentProviderKey) ProcessItemFactory
(ItemConvertible item, int count, int price, Item processed, int processedCount, int maxUses, int experience, float multiplier) private
ProcessItemFactory
(ItemConvertible item, int count, int price, ItemStack processed, int processedCount, int maxUses, int experience, float multiplier) ProcessItemFactory
(TradedItem toBeProcessed, int count, ItemStack processed, int maxUses, int processedCount, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
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
Lcpm$h;a:Ldgc;
-
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
Lcpm$h;b:I
-
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
Lcpm$h;c:Lcxo;
-
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
Lcpm$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
Lcpm$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
Lcpm$h;f:F
-
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
Lcpm$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>
Lcpm$h;<init>(Ldhg;IILcxk;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>
Lcpm$h;<init>(Ldhg;IILcxo;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>
Lcpm$h;<init>(Ldhg;IILdhg;IIIFLaly;)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>
Lcpm$h;<init>(Ldgc;ILcxo;IIFLjava/util/Optional;)V
-
-
Method Details
-
create
Creates a trade offer.- Specified by:
create
in interfaceTradeOffers.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
Lcpm$g;a(Lbvj;Lbam;)Ldge;
-