Class MovesetEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
- Direct Known Subclasses:
MovesetEvent.ForgotMoveEvent,MovesetEvent.LearntMoveEvent
public abstract class MovesetEvent
extends net.minecraftforge.eventbus.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 PokemonLink
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.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 -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
pokemon
-
moveset
TheMovesetthat is changing.
-
-
Constructor Details
-
MovesetEvent
-