Class MovesetEvent.LearntMoveEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent.LearntMoveEvent
Enclosing class:
MovesetEvent

public static class MovesetEvent.LearntMoveEvent extends MovesetEvent
Subclass of MovesetEvent fired when a move is learnt. This will fire regardless of whether an existing move was replaced or not. The replacedAttack field, therefore, may quite possibly be null. If an existing attack was replaced, this event will be preceded by a MovesetEvent.ForgotMoveEvent, but will still fire.

This is a notifying event and therefore does not support cancellation.

  • Field Details

    • replacedAttack

      @Nullable public final Attack replacedAttack
      The attack that was replaced, if one was.
    • learntAttack

      public final Attack learntAttack
      The attack being inserted into the moveset.
  • Constructor Details