Class NPCTraderEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
- Direct Known Subclasses:
NPCTraderEvent.AcceptTrade
,NPCTraderEvent.ShowTrade
public class NPCTraderEvent
extends net.minecraftforge.eventbus.api.Event
All events relating to the npc trader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event fired when a player is accepting a trade from the NPC Traderstatic class
Events fired surrounding the player opening the trade screenNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
NPCTraderEvent
(net.minecraft.world.entity.player.Player player, NPC trader) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
protected final net.minecraft.world.entity.player.Player player -
trader
-
-
Constructor Details
-
NPCTraderEvent
-
-
Method Details
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer() -
getTrader
-