Class UseMoveSkillEvent

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

public class UseMoveSkillEvent extends net.minecraftforge.eventbus.api.Event
Event fired when any move skill is used.

Cancelling this event will prevent the move skill from executing.

Since:
September 22, 2019
  • Field Details

    • pixelmon

      public final PixelmonEntity pixelmon
      The Pokémon entity using the move skill.
    • moveSkill

      public final MoveSkill moveSkill
      The move skill being used.
    • data

      public Object data
      The data object associated with the move skill. In the case of no-target, this is null. In the case of entity related targets this will be an entity. Finally, in the case of a block target this will be Tuple<BlockPos, EnumFacing>.

      You can change this if you want, just know that I'll be very disappointed in you if you stuff it up.
    • handler

      The handler to fire when this particular move proceeds, provided it isn't cancelled. This is a convenient
  • Constructor Details

  • Method Details