Class MovesetEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
- Direct Known Subclasses:
MovesetEvent.ForgotMoveEvent,MovesetEvent.LearntMoveEvent
public abstract class MovesetEvent
extends net.neoforged.bus.api.Event
Abstract event for all changes to
Movesets for player-owned Pokémon. The two provided implementations
are MovesetEvent.LearntMoveEvent and MovesetEvent.ForgotMoveEvent. Both events hold final references to the Pokemon
representation of the Moveset owner and the Moveset itself. Under no known circumstances,
as of writing, is the owner field or the moveset field null.
Both implementing events are very sensitive, and will fire for ALL modifications to movesets for player Pokémon.
Note that all implementations will fire AFTER the respective change, and all implementations are not cancellable.
Created January 3rd, 2018
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSubclass ofMovesetEventfired when a move is forgotten or replaced.static classSubclass ofMovesetEventfired when a move is learnt. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pokemon
-
moveset
TheMovesetthat is changing.
-
-
Constructor Details
-
MovesetEvent
-