Class MoveSkillCooldownEvent

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

public class MoveSkillCooldownEvent extends net.minecraftforge.eventbus.api.Event
Event fired when a move skill cooldown is about to be applied to a Pokémon.

Canceling this event will remove the cooldown.

Since:
September 22, 2019
  • 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
    int
    The number of ticks that this use will take to cool down.
    final MoveSkill
    The move skill being used.
    The Pokémon entity using the move skill.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MoveSkillCooldownEvent(PixelmonEntity pixelmon, MoveSkill moveSkill, int cooldownTicks)
     
  • 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

    • pixelmon

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

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

      public int cooldownTicks
      The number of ticks that this use will take to cool down.
  • Constructor Details

    • MoveSkillCooldownEvent

      public MoveSkillCooldownEvent(PixelmonEntity pixelmon, MoveSkill moveSkill, int cooldownTicks)