Class RidePokemonEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.RidePokemonEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class RidePokemonEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Event fired whenever a player attempts to ride a Pokémon. Canceling this event will prevent the Pokémon from being mounted
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Pokémon being mountednet.minecraft.server.level.ServerPlayer
The player attempting to mount the Pokémon -
Constructor Summary
ConstructorsConstructorDescriptionRidePokemonEvent
(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
player
public net.minecraft.server.level.ServerPlayer playerThe player attempting to mount the Pokémon -
pixelmon
The Pokémon being mounted
-
-
Constructor Details
-
RidePokemonEvent
-