Package net.minecraftforge.event.village
Class WandererTradesEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.village.WandererTradesEvent
-
public class WandererTradesEvent extends net.minecraftforge.eventbus.api.Event
WandererTradesEvent is fired during theFMLServerAboutToStartEvent
. It is used to gather the trade lists for the wandering merchant. It is fired on theMinecraftForge.EVENT_BUS
. The wandering merchant picks a few trades fromTradeType#GENERIC
and a single trade fromTradeType#RARE
. To add trades to the merchant, simply add new trades to the list.BasicTrade
provides a default implementation.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<VillagerTrades.ITrade>
generic
protected java.util.List<VillagerTrades.ITrade>
rare
-
Constructor Summary
Constructors Constructor Description WandererTradesEvent(java.util.List<VillagerTrades.ITrade> generic, java.util.List<VillagerTrades.ITrade> rare)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<VillagerTrades.ITrade>
getGenericTrades()
java.util.List<VillagerTrades.ITrade>
getRareTrades()
-
-
-
Field Detail
-
generic
protected java.util.List<VillagerTrades.ITrade> generic
-
rare
protected java.util.List<VillagerTrades.ITrade> rare
-
-
Constructor Detail
-
WandererTradesEvent
public WandererTradesEvent(java.util.List<VillagerTrades.ITrade> generic, java.util.List<VillagerTrades.ITrade> rare)
-
-
Method Detail
-
getGenericTrades
public java.util.List<VillagerTrades.ITrade> getGenericTrades()
-
getRareTrades
public java.util.List<VillagerTrades.ITrade> getRareTrades()
-
-