Class NPCTraderEvent.AcceptTrade.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
NPCTraderEvent.AcceptTrade

public static class NPCTraderEvent.AcceptTrade.Pre extends NPCTraderEvent.AcceptTrade
Fired before the trade takes place Cancelling will stop the trade for this Pokemon from the player's party
  • Constructor Details

    • Pre

      public Pre(net.minecraft.world.entity.player.Player player, NPC trader, TradePair tradePair, Pokemon playerPokemon, Pokemon tradedPokemon, boolean removeNPC)
  • Method Details

    • setRemoveNPC

      public void setRemoveNPC(boolean removeNPC)
    • setTradedPokemon

      public void setTradedPokemon(Pokemon pokemon)