Class PixelmonTradeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PixelmonTradeEvent
- Direct Known Subclasses:
PixelmonTradeEvent.Post
,PixelmonTradeEvent.Pre
public class PixelmonTradeEvent
extends net.minecraftforge.eventbus.api.Event
Fires when a trade is completing.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Canceling this event will prevent the Pokemon from being exchangedNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionPixelmonTradeEvent
(net.minecraft.world.entity.player.Player player1, net.minecraft.world.entity.player.Player player2, Pokemon pokemon1, Pokemon pokemon2) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.player.Player
net.minecraft.world.entity.player.Player
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
PixelmonTradeEvent
-
-
Method Details
-
getPlayer1
public net.minecraft.world.entity.player.Player getPlayer1() -
getPlayer2
public net.minecraft.world.entity.player.Player getPlayer2() -
getPokemon1
-
getPokemon2
-