public static class NPCTraderEvent.AcceptTrade extends NPCTraderEvent
Modifier and Type | Class and Description |
---|---|
static class |
NPCTraderEvent.AcceptTrade.Post
Fired after the trade took place
|
static class |
NPCTraderEvent.AcceptTrade.Pre
Fired before the trade takes place
Cancelling will stop the trade for this Pokemon from the player's party
|
NPCTraderEvent.AcceptTrade, NPCTraderEvent.ShowTrade
Modifier and Type | Field and Description |
---|---|
protected Pokemon |
playerPokemon |
protected boolean |
removeNPC |
protected Pokemon |
tradedPokemon |
protected TradePair |
tradePair |
player, trader
Constructor and Description |
---|
AcceptTrade(net.minecraft.entity.player.PlayerEntity player,
NPCEntity trader,
TradePair tradePair,
Pokemon playerPokemon,
Pokemon tradedPokemon,
boolean removeNPC) |
Modifier and Type | Method and Description |
---|---|
Pokemon |
getPlayerPokemon() |
Pokemon |
getTradedPokemon() |
TradePair |
getTradePair() |
boolean |
isRemoveNPC() |
getPlayer, getTrader