Class PokegiftEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokegiftEvent

public class PokegiftEvent extends net.minecraftforge.eventbus.api.Event
Event fired when a /pokegift is attempted. Cancelling this event will prevent the transfer.
  • Nested Class Summary

    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
    PokegiftEvent(net.minecraft.server.level.ServerPlayer giver, net.minecraft.server.level.ServerPlayer receiver, Pokemon pokemon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     
     
    net.minecraft.server.level.ServerPlayer
     

    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

    • PokegiftEvent

      public PokegiftEvent(net.minecraft.server.level.ServerPlayer giver, net.minecraft.server.level.ServerPlayer receiver, Pokemon pokemon)
  • Method Details

    • getGiver

      public net.minecraft.server.level.ServerPlayer getGiver()
    • getReceiver

      public net.minecraft.server.level.ServerPlayer getReceiver()
    • getPokemon

      public Pokemon getPokemon()