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 the
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 generic
and a single trade from rare
.
To add trades to the merchant, simply add new trades to the list. BasicTrade
provides a default implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<VillagerTrades.ItemListing>
protected List<VillagerTrades.ItemListing>
-
Constructor Summary
ConstructorDescriptionWandererTradesEvent(List<VillagerTrades.ItemListing> generic, List<VillagerTrades.ItemListing> rare)
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
generic
-
rare
-
-
Constructor Details
-
WandererTradesEvent
public WandererTradesEvent(List<VillagerTrades.ItemListing> generic, List<VillagerTrades.ItemListing> rare)
-
-
Method Details
-
getGenericTrades
-
getRareTrades
-