public static class MovesetEvent.LearntMoveEvent extends MovesetEvent
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.
MovesetEvent.ForgotMoveEvent, MovesetEvent.LearntMoveEvent
Modifier and Type | Field and Description |
---|---|
Attack |
learntAttack
The attack being inserted into the moveset.
|
Attack |
replacedAttack
The attack that was replaced, if one was.
|
moveset, pokemon
Constructor and Description |
---|
LearntMoveEvent(Pokemon pokemon,
Moveset moveset,
Attack replacedAttack,
Attack learntAttack) |