Package net.minecraft.village
Record Class TradeOffers.TypedWrapperFactory
java.lang.Object
java.lang.Record
net.minecraft.village.TradeOffers.TypedWrapperFactory
- Record Components:
- typeToFactory-
- All Implemented Interfaces:
- TradeOffers.Factory
- Enclosing class:
- TradeOffers
private static record TradeOffers.TypedWrapperFactory(Map<VillagerType,TradeOffers.Factory> typeToFactory)
extends Record
implements TradeOffers.Factory 
- Mappings:
- Namespace - Name - named - net/minecraft/village/TradeOffers$TypedWrapperFactory- intermediary - net/minecraft/class_3853$class_8640- official - coo$m- named - typeToFactory- intermediary - comp_1962- official - a
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<VillagerType, TradeOffers.Factory> The field for thetypeToFactoryrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates a trade offer.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(TradeOffers.Factory factory, VillagerType[] types) final StringtoString()Returns a string representation of this record class.Returns the value of thetypeToFactoryrecord component.
- 
Field Details- 
typeToFactoryThe field for thetypeToFactoryrecord component.
 
- 
- 
Constructor Details- 
TypedWrapperFactoryTypedWrapperFactory(Map<VillagerType, TradeOffers.Factory> map) 
 
- 
- 
Method Details- 
of- Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/village/TradeOffers$TypedWrapperFactory;of(Lnet/minecraft/village/TradeOffers$Factory;[Lnet/minecraft/village/VillagerType;)Lnet/minecraft/village/TradeOffers$TypedWrapperFactory;- intermediary - method_53834- Lnet/minecraft/class_3853$class_8640;method_53834(Lnet/minecraft/class_3853$class_1652;[Lnet/minecraft/class_3854;)Lnet/minecraft/class_3853$class_8640;- official - a- Lcoo$m;a(Lcoo$g;[Lcop;)Lcoo$m;
 
- 
createCreates a trade offer.- Specified by:
- createin interface- TradeOffers.Factory
- Returns:
- a new trade offer, or nullif 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- Lcoo$g;a(Lbum;Lazh;)Ldfg;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
typeToFactoryReturns the value of thetypeToFactoryrecord component.- Returns:
- the value of the typeToFactoryrecord component
 
 
-