Package net.minecraft.village
Class TradeOffers.SellItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.SellItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
TradeOffers
- Mappings:
Namespace Name named net/minecraft/village/TradeOffers$SellItemFactory
intermediary net/minecraft/class_3853$class_4165
official cmm$i
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional
<RegistryKey<EnchantmentProvider>> private final int
private final int
private final float
private final int
private final ItemStack
-
Constructor Summary
ConstructorDescriptionSellItemFactory
(Block block, int price, int count, int maxUses, int experience) SellItemFactory
(Item item, int price, int count, int experience) SellItemFactory
(Item item, int price, int count, int maxUses, int experience) SellItemFactory
(Item item, int price, int count, int maxUses, int experience, float multiplier) SellItemFactory
(Item item, int price, int count, int maxUses, int experience, float multiplier, RegistryKey<EnchantmentProvider> enchantmentProviderKey) SellItemFactory
(ItemStack stack, int price, int count, int maxUses, int experience) SellItemFactory
(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier) SellItemFactory
(ItemStack sell, int price, int count, int maxUses, int experience, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
sell
- Mappings:
Namespace Name Mixin selector named sell
Lnet/minecraft/village/TradeOffers$SellItemFactory;sell:Lnet/minecraft/item/ItemStack;
intermediary field_18571
Lnet/minecraft/class_3853$class_4165;field_18571:Lnet/minecraft/class_1799;
official a
Lcmm$i;a:Lcuo;
-
price
private final int price- Mappings:
Namespace Name Mixin selector named price
Lnet/minecraft/village/TradeOffers$SellItemFactory;price:I
intermediary field_18572
Lnet/minecraft/class_3853$class_4165;field_18572:I
official b
Lcmm$i;b:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector named maxUses
Lnet/minecraft/village/TradeOffers$SellItemFactory;maxUses:I
intermediary field_18574
Lnet/minecraft/class_3853$class_4165;field_18574:I
official c
Lcmm$i;c:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector named experience
Lnet/minecraft/village/TradeOffers$SellItemFactory;experience:I
intermediary field_18575
Lnet/minecraft/class_3853$class_4165;field_18575:I
official d
Lcmm$i;d:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector named multiplier
Lnet/minecraft/village/TradeOffers$SellItemFactory;multiplier:F
intermediary field_18576
Lnet/minecraft/class_3853$class_4165;field_18576:F
official e
Lcmm$i;e:F
-
enchantmentProviderKey
- Mappings:
Namespace Name Mixin selector named enchantmentProviderKey
Lnet/minecraft/village/TradeOffers$SellItemFactory;enchantmentProviderKey:Ljava/util/Optional;
intermediary field_51619
Lnet/minecraft/class_3853$class_4165;field_51619:Ljava/util/Optional;
official f
Lcmm$i;f:Ljava/util/Optional;
-
-
Constructor Details
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/block/Block;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_2248;IIII)V
official <init>
Lcmm$i;<init>(Ldfw;IIII)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;III)V
official <init>
Lcmm$i;<init>(Lcuj;III)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIII)V
official <init>
Lcmm$i;<init>(Lcuj;IIII)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIII)V
official <init>
Lcmm$i;<init>(Lcuo;IIII)V
-
SellItemFactory
public SellItemFactory(Item item, int price, int count, int maxUses, int experience, float multiplier) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIIIF)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIIIF)V
official <init>
Lcmm$i;<init>(Lcuj;IIIIF)V
-
SellItemFactory
public SellItemFactory(Item item, int price, int count, int maxUses, int experience, float multiplier, RegistryKey<EnchantmentProvider> enchantmentProviderKey) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIIIFLnet/minecraft/registry/RegistryKey;)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIIIFLnet/minecraft/class_5321;)V
official <init>
Lcmm$i;<init>(Lcuj;IIIIFLakp;)V
-
SellItemFactory
public SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIIIF)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIIIF)V
official <init>
Lcmm$i;<init>(Lcuo;IIIIF)V
-
SellItemFactory
public SellItemFactory(ItemStack sell, int price, int count, int maxUses, int experience, float multiplier, Optional<RegistryKey<EnchantmentProvider>> enchantmentProviderKey) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIIIFLjava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIIIFLjava/util/Optional;)V
official <init>
Lcmm$i;<init>(Lcuo;IIIIFLjava/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
Lcmm$g;a(Lbsq;Layv;)Ldbs;
-