Class NPCTraderEvent.AcceptTrade
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade
- Direct Known Subclasses:
NPCTraderEvent.AcceptTrade.Post
,NPCTraderEvent.AcceptTrade.Pre
- Enclosing class:
- NPCTraderEvent
Event fired when a player is accepting a trade from the NPC Trader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the trade took placestatic class
Fired before the trade takes place Cancelling will stop the trade for this Pokemon from the player's partyNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
NPCTraderEvent.AcceptTrade, NPCTraderEvent.ShowTrade
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 final Pokemon
protected boolean
protected Pokemon
protected final TradePair
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
player, trader
-
Constructor Summary
ModifierConstructorDescriptionprotected
AcceptTrade
(net.minecraft.world.entity.player.Player player, NPC trader, TradePair tradePair, Pokemon playerPokemon, Pokemon tradedPokemon, boolean removeNPC) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
getPlayer, getTrader
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
tradePair
-
playerPokemon
-
tradedPokemon
-
removeNPC
protected boolean removeNPC
-
-
Constructor Details
-
AcceptTrade
-
-
Method Details
-
getTradePair
-
getPlayerPokemon
-
isRemoveNPC
public boolean isRemoveNPC() -
getTradedPokemon
-