Class WandererTradesEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.village.WandererTradesEvent

public class WandererTradesEvent extends net.neoforged.bus.api.Event
WandererTradesEvent is fired during reload by TagsUpdatedEvent. It is used to gather the trade lists for the wandering merchant. It is fired on the NeoForge.EVENT_BUS. For each set of trades the wandering merchant picks the specified amount of trades from the corresponding list. To add trades to the merchant, simply add new trades to the list. BasicItemListing provides a default implementation.