Uses of Interface
net.minecraft.world.entity.npc.VillagerTrades.ItemListing
Packages that use VillagerTrades.ItemListing
Package
Description
-
Uses of VillagerTrades.ItemListing in net.minecraft.world.entity.npc
Classes in net.minecraft.world.entity.npc that implement VillagerTrades.ItemListingModifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static final record
Fields in net.minecraft.world.entity.npc with type parameters of type VillagerTrades.ItemListingModifier and TypeFieldDescriptionprivate final Map
<VillagerType, VillagerTrades.ItemListing> VillagerTrades.TypeSpecificTrade.trades
The field for thetrades
record component.Methods in net.minecraft.world.entity.npc that return VillagerTrades.ItemListingModifier and TypeMethodDescriptionprivate static VillagerTrades.ItemListing
VillagerTrades.commonBooks
(int pVillagerXp) private static VillagerTrades.ItemListing
VillagerTrades.specialBooks()
Methods in net.minecraft.world.entity.npc that return types with arguments of type VillagerTrades.ItemListingModifier and TypeMethodDescriptionVillagerTrades.TypeSpecificTrade.trades()
Returns the value of thetrades
record component.Methods in net.minecraft.world.entity.npc with parameters of type VillagerTrades.ItemListingModifier and TypeMethodDescriptionprotected void
AbstractVillager.addOffersFromItemListings
(MerchantOffers pGivenMerchantOffers, VillagerTrades.ItemListing[] pNewTrades, int pMaxNumbers) Adds limited numbers of trades to the givenMerchantOffers
.VillagerTrades.TypeSpecificTrade.oneTradeInBiomes
(VillagerTrades.ItemListing pListing, VillagerType... pTypes) Constructor parameters in net.minecraft.world.entity.npc with type arguments of type VillagerTrades.ItemListingModifierConstructorDescriptionCreates an instance of aTypeSpecificTrade
record class. -
Uses of VillagerTrades.ItemListing in net.neoforged.neoforge.common
Classes in net.neoforged.neoforge.common that implement VillagerTrades.ItemListingModifier and TypeClassDescriptionclass
A default, exposed implementation of ITrade. -
Uses of VillagerTrades.ItemListing in net.neoforged.neoforge.event.village
Fields in net.neoforged.neoforge.event.village with type parameters of type VillagerTrades.ItemListingModifier and TypeFieldDescriptionprotected List
<VillagerTrades.ItemListing> WandererTradesEvent.generic
protected List
<VillagerTrades.ItemListing> WandererTradesEvent.rare
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap
<List<VillagerTrades.ItemListing>> VillagerTradesEvent.trades
Methods in net.neoforged.neoforge.event.village that return types with arguments of type VillagerTrades.ItemListingModifier and TypeMethodDescriptionWandererTradesEvent.getGenericTrades()
WandererTradesEvent.getRareTrades()
it.unimi.dsi.fastutil.ints.Int2ObjectMap
<List<VillagerTrades.ItemListing>> VillagerTradesEvent.getTrades()
Constructor parameters in net.neoforged.neoforge.event.village with type arguments of type VillagerTrades.ItemListingModifierConstructorDescriptionVillagerTradesEvent
(it.unimi.dsi.fastutil.ints.Int2ObjectMap<List<VillagerTrades.ItemListing>> trades, VillagerProfession type) Deprecated, for removal: This API element is subject to removal in a future version.VillagerTradesEvent
(it.unimi.dsi.fastutil.ints.Int2ObjectMap<List<VillagerTrades.ItemListing>> trades, VillagerProfession type, RegistryAccess registryAccess) WandererTradesEvent
(List<VillagerTrades.ItemListing> generic, List<VillagerTrades.ItemListing> rare) Deprecated, for removal: This API element is subject to removal in a future version.UseWandererTradesEvent(List, List, RegistryAccess)
insteadWandererTradesEvent
(List<VillagerTrades.ItemListing> generic, List<VillagerTrades.ItemListing> rare, RegistryAccess registryAccess)
VillagerTradesEvent(Int2ObjectMap, VillagerProfession, RegistryAccess)
instead