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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
MovesetEvent.ForgotMoveEvent, MovesetEvent.LearntMoveEvent
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
Modifier and TypeFieldDescriptionfinal Attack
The attack being inserted into the moveset.final Attack
The attack that was replaced, if one was.Fields inherited from class com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
moveset, pokemon
-
Constructor Summary
ConstructorDescriptionLearntMoveEvent
(Pokemon pokemon, Moveset moveset, Attack replacedAttack, Attack learntAttack) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
replacedAttack
The attack that was replaced, if one was. -
learntAttack
The attack being inserted into the moveset.
-
-
Constructor Details
-
LearntMoveEvent
-