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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
    Canceling this event will prevent the Pokemon from being exchanged

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonTradeEvent(net.minecraft.world.entity.player.Player player1, net.minecraft.world.entity.player.Player player2, Pokemon pokemon1, Pokemon pokemon2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PixelmonTradeEvent

      public PixelmonTradeEvent(net.minecraft.world.entity.player.Player player1, net.minecraft.world.entity.player.Player player2, Pokemon pokemon1, Pokemon pokemon2)
  • Method Details

    • getPlayer1

      public net.minecraft.world.entity.player.Player getPlayer1()
    • getPlayer2

      public net.minecraft.world.entity.player.Player getPlayer2()
    • getPokemon1

      public Pokemon getPokemon1()
    • getPokemon2

      public Pokemon getPokemon2()