Package net.neoforged.neoforge.common
Class VillagerTradingManager
java.lang.Object
net.neoforged.neoforge.common.VillagerTradingManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<ResourceKey<VillagerProfession>, it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> private static final List
<org.apache.commons.lang3.tuple.Pair<VillagerTrades.ItemListing[], Integer>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
private static void
postVillagerEvents
(HolderLookup.Provider registries) Posts a VillagerTradesEvent for each registered profession.private static void
postWandererEvent
(HolderLookup.Provider registries) Posts the WandererTradesEvent.
-
Field Details
-
VANILLA_TRADES
private static final Map<ResourceKey<VillagerProfession>,it.unimi.dsi.fastutil.ints.Int2ObjectMap<VillagerTrades.ItemListing[]>> VANILLA_TRADES -
WANDERER_TRADES
private static final List<org.apache.commons.lang3.tuple.Pair<VillagerTrades.ItemListing[],Integer>> WANDERER_TRADES
-
-
Constructor Details
-
VillagerTradingManager
public VillagerTradingManager()
-
-
Method Details
-
loadTrades
-
postWandererEvent
Posts the WandererTradesEvent. -
postVillagerEvents
Posts a VillagerTradesEvent for each registered profession.
-