Package net.minecraft.village
Class TradeOffers.TypeAwareBuyForOneEmeraldFactory
java.lang.Object
net.minecraft.village.TradeOffers.TypeAwareBuyForOneEmeraldFactory
- All Implemented Interfaces:
TradeOffers.Factory
- Enclosing class:
TradeOffers
private static class TradeOffers.TypeAwareBuyForOneEmeraldFactory
extends Object
implements TradeOffers.Factory
- Mappings:
Namespace Name official btt$c
intermediary net/minecraft/class_3853$class_4162
named net/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final int
private final Map<VillagerType,
Item> private final int
-
Constructor Summary
ConstructorsConstructorDescriptionTypeAwareBuyForOneEmeraldFactory
(int count, int maxUses, int experience, Map<VillagerType, Item> map) -
Method Summary
Modifier and TypeMethodDescriptionCreates a trade offer.
-
Field Details
-
map
- Mappings:
Namespace Name Mixin selector official a
Lbtt$c;a:Ljava/util/Map;
intermediary field_18553
Lnet/minecraft/class_3853$class_4162;field_18553:Ljava/util/Map;
named map
Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;map:Ljava/util/Map;
-
count
private final int count- Mappings:
Namespace Name Mixin selector official b
Lbtt$c;b:I
intermediary field_18554
Lnet/minecraft/class_3853$class_4162;field_18554:I
named count
Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;count:I
-
maxUses
private final int maxUses- Mappings:
Namespace Name Mixin selector official c
Lbtt$c;c:I
intermediary field_18555
Lnet/minecraft/class_3853$class_4162;field_18555:I
named maxUses
Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;maxUses:I
-
experience
private final int experience- Mappings:
Namespace Name Mixin selector official d
Lbtt$c;d:I
intermediary field_18556
Lnet/minecraft/class_3853$class_4162;field_18556:I
named experience
Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;experience:I
-
-
Constructor Details
-
TypeAwareBuyForOneEmeraldFactory
public TypeAwareBuyForOneEmeraldFactory(int count, int maxUses, int experience, Map<VillagerType, Item> map) - Mappings:
Namespace Name Mixin selector official <init>
Lbtt$c;<init>(IIILjava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_3853$class_4162;<init>(IIILjava/util/Map;)V
named <init>
Lnet/minecraft/village/TradeOffers$TypeAwareBuyForOneEmeraldFactory;<init>(IIILjava/util/Map;)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
Lbtt$f;a(Lbbn;Lamn;)Lcfv;
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;
-