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
ConstructorDescriptionPokegiftEvent
(net.minecraft.server.level.ServerPlayer giver, net.minecraft.server.level.ServerPlayer receiver, Pokemon pokemon) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
getGiver()
net.minecraft.server.level.ServerPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-