Class RidePokemonEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.RidePokemonEvent
public class RidePokemonEvent
extends net.minecraftforge.eventbus.api.Event
Event fired whenever a player attempts to ride a Pokémon. Canceling this event will prevent the Pokémon from being mounted
-
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
-
Field Summary
Modifier and TypeFieldDescriptionThe Pokémon being mountednet.minecraft.server.level.ServerPlayer
The player attempting to mount the Pokémon -
Constructor Summary
ConstructorDescriptionRidePokemonEvent
(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-