Package net.minecraft.village
Class TradeOffers.SellItemFactory
java.lang.Object
net.minecraft.village.TradeOffers.SellItemFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
- TradeOffers
static class TradeOffers.SellItemFactory extends Object implements TradeOffers.Factory
- Mappings:
Namespace Name official bhc$h
intermediary net/minecraft/class_3853$class_4165
named net/minecraft/village/TradeOffers$SellItemFactory
-
Field Summary
Fields Modifier and Type Field Description private int
count
private int
experience
private int
maxUses
private float
multiplier
private int
price
private ItemStack
sell
-
Constructor Summary
Constructors Constructor Description SellItemFactory(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(ItemStack stack, int price, int count, int maxUses, int experience)
SellItemFactory(ItemStack stack, int price, int count, 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
-
sell
- Mappings:
Namespace Name Mixin selector official a
Lbhc$h;a:Lbnv;
intermediary field_18571
Lnet/minecraft/class_3853$class_4165;field_18571:Lnet/minecraft/class_1799;
named sell
Lnet/minecraft/village/TradeOffers$SellItemFactory;sell:Lnet/minecraft/item/ItemStack;
-
price
private final int price- Mappings:
Namespace Name Mixin selector official b
Lbhc$h;b:I
intermediary field_18572
Lnet/minecraft/class_3853$class_4165;field_18572:I
named price
Lnet/minecraft/village/TradeOffers$SellItemFactory;price:I
-
count
private final int count- Mappings:
Namespace Name Mixin selector official c
Lbhc$h;c:I
intermediary field_18573
Lnet/minecraft/class_3853$class_4165;field_18573:I
named count
Lnet/minecraft/village/TradeOffers$SellItemFactory;count:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official d
Lbhc$h;d:I
intermediary field_18574
Lnet/minecraft/class_3853$class_4165;field_18574:I
named maxUses
Lnet/minecraft/village/TradeOffers$SellItemFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official e
Lbhc$h;e:I
intermediary field_18575
Lnet/minecraft/class_3853$class_4165;field_18575:I
named experience
Lnet/minecraft/village/TradeOffers$SellItemFactory;experience:I
-
multiplier
private final float multiplier- Mappings:
Namespace Name Mixin selector official f
Lbhc$h;f:F
intermediary field_18576
Lnet/minecraft/class_3853$class_4165;field_18576:F
named multiplier
Lnet/minecraft/village/TradeOffers$SellItemFactory;multiplier:F
-
-
Constructor Details
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$h;<init>(Lbwu;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_2248;IIII)V
named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/block/Block;IIII)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$h;<init>(Lbnr;III)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;III)V
named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;III)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$h;<init>(Lbnr;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1792;IIII)V
named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/Item;IIII)V
-
SellItemFactory
- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$h;<init>(Lbnv;IIII)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIII)V
named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIII)V
-
SellItemFactory
public SellItemFactory(ItemStack stack, int price, int count, int maxUses, int experience, float multiplier)- Mappings:
Namespace Name Mixin selector official <init>
Lbhc$h;<init>(Lbnv;IIIIF)V
intermediary <init>
Lnet/minecraft/class_3853$class_4165;<init>(Lnet/minecraft/class_1799;IIIIF)V
named <init>
Lnet/minecraft/village/TradeOffers$SellItemFactory;<init>(Lnet/minecraft/item/ItemStack;IIIIF)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;
-