Package net.minecraft.village
Class TradeOffers.SellEnchantedToolFactory
java.lang.Object
net.minecraft.village.TradeOffers.SellEnchantedToolFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.SellEnchantedToolFactory extends Object implements TradeOffers.Factory
- Mappings:
Namespace Name official bhc$e
intermediary net/minecraft/class_3853$class_4163
named net/minecraft/village/TradeOffers$SellEnchantedToolFactory
-
Field Summary
Fields Modifier and Type Field Description private int
basePrice
private int
experience
private int
maxUses
private float
multiplier
private ItemStack
tool
-
Constructor Summary
Constructors Constructor Description SellEnchantedToolFactory(Item item, int basePrice, int maxUses, int experience)
SellEnchantedToolFactory(Item item, int basePrice, int maxUses, int experience, float multiplier)
-
Method Summary
Modifier and Type Method Description TradeOffer
create(Entity entity, Random random)
Creates a trade offer.
-
Field Details
-
tool
- Mappings:
Namespace Name Mixin selector official a
Lbhc$e;a:Lbnv;
intermediary field_18558
Lnet/minecraft/class_3853$class_4163;field_18558:Lnet/minecraft/class_1799;
named tool
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;tool:Lnet/minecraft/item/ItemStack;
-
basePrice
private final int basePrice- Mappings:
Namespace Name Mixin selector official b
Lbhc$e;b:I
intermediary field_18559
Lnet/minecraft/class_3853$class_4163;field_18559:I
named basePrice
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;basePrice:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official c
Lbhc$e;c:I
intermediary field_18560
Lnet/minecraft/class_3853$class_4163;field_18560:I
named maxUses
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official d
Lbhc$e;d:I
intermediary field_18561
Lnet/minecraft/class_3853$class_4163;field_18561:I
named experience
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;experience:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector official e
Lbhc$e;e:F
intermediary field_18562
Lnet/minecraft/class_3853$class_4163;field_18562:F
named multiplier
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;multiplier:F
-
-
Constructor Details
-
SellEnchantedToolFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$e;<init>(Lbnr;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4163;<init>(Lnet/minecraft/class_1792;III)V
named <init>
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;<init>(Lnet/minecraft/item/Item;III)V
-
SellEnchantedToolFactory
public SellEnchantedToolFactory(Item item, int basePrice, int maxUses, int experience, float multiplier)- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$e;<init>(Lbnr;IIIF)V
intermediary <init>
Lnet/minecraft/class_3853$class_4163;<init>(Lnet/minecraft/class_1792;IIIF)V
named <init>
Lnet/minecraft/village/TradeOffers$SellEnchantedToolFactory;<init>(Lnet/minecraft/item/Item;IIIF)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 official a
Lbhc$f;a(Laqv;Ljava/util/Random;)Lbss;
intermediary method_7246
Lnet/minecraft/class_3853$class_1652;method_7246(Lnet/minecraft/class_1297;Ljava/util/Random;)Lnet/minecraft/class_1914;
named create
Lnet/minecraft/village/TradeOffers$Factory;create(Lnet/minecraft/entity/Entity;Ljava/util/Random;)Lnet/minecraft/village/TradeOffer;
-