public class WandererTradesEvent
extends net.minecraftforge.eventbus.api.Event
FMLServerAboutToStartEvent
. It is used to gather the trade lists for the wandering merchant.
It is fired on the MinecraftForge.EVENT_BUS
.
The wandering merchant picks a few trades from TradeType#GENERIC
and a single trade from TradeType#RARE
.
To add trades to the merchant, simply add new trades to the list. BasicTrade
provides a default implementation.Modifier and Type | Field and Description |
---|---|
protected java.util.List<VillagerTrades.ITrade> |
generic |
protected java.util.List<VillagerTrades.ITrade> |
rare |
Constructor and Description |
---|
WandererTradesEvent(java.util.List<VillagerTrades.ITrade> generic,
java.util.List<VillagerTrades.ITrade> rare) |
Modifier and Type | Method and Description |
---|---|
java.util.List<VillagerTrades.ITrade> |
getGenericTrades() |
java.util.List<VillagerTrades.ITrade> |
getRareTrades() |
protected java.util.List<VillagerTrades.ITrade> generic
protected java.util.List<VillagerTrades.ITrade> rare
public WandererTradesEvent(java.util.List<VillagerTrades.ITrade> generic, java.util.List<VillagerTrades.ITrade> rare)
public java.util.List<VillagerTrades.ITrade> getGenericTrades()
public java.util.List<VillagerTrades.ITrade> getRareTrades()