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

    Fields
    Modifier and Type
    Field
    Description
    The Pokémon being mounted
    net.minecraft.server.level.ServerPlayer
    The player attempting to mount the Pokémon
  • Constructor Summary

    Constructors
    Constructor
    Description
    RidePokemonEvent(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

    Methods inherited from class java.lang.Object

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

    • player

      public net.minecraft.server.level.ServerPlayer player
      The player attempting to mount the Pokémon
    • pixelmon

      public PixelmonEntity pixelmon
      The Pokémon being mounted
  • Constructor Details

    • RidePokemonEvent

      public RidePokemonEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)