Class NPCTraderEvent.AcceptTrade.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade.Pre
- Enclosing class:
- NPCTraderEvent.AcceptTrade
Fired before the trade takes place
Cancelling will stop the trade for this Pokemon from the player's party
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade
NPCTraderEvent.AcceptTrade.Post, NPCTraderEvent.AcceptTrade.Pre
Nested 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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade
playerPokemon, removeNPC, tradedPokemon, tradePair
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
player, trader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setRemoveNPC
(boolean removeNPC) void
setTradedPokemon
(Pokemon pokemon) Methods inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent.AcceptTrade
getPlayerPokemon, getTradedPokemon, getTradePair, isRemoveNPC
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
-
Constructor Details
-
Pre
-
-
Method Details
-
setRemoveNPC
public void setRemoveNPC(boolean removeNPC) -
setTradedPokemon
-