Class MegaEvolutionEvent.MoveSkill
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent.MoveSkill
- Enclosing class:
- MegaEvolutionEvent
Fired when the move skill mega evolution is about to happen
Cancelling will prevent the mega evolution
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent
MegaEvolutionEvent.Battle, MegaEvolutionEvent.MoveSkill, MegaEvolutionEvent.Post, MegaEvolutionEvent.Pre
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent
getEntity, getPlayer, getPokemon, getStone, getStoneItem, isUltraBurst
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
MoveSkill
Default constructor taking only the pokemon that evolved- Parameters:
pokemon
- The pokemon that evolved
-
MoveSkill
public MoveSkill(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, net.minecraft.world.item.ItemStack item) Constructor for pokemon that evolved with the required item- Parameters:
pokemon
- The pokemon that evolveditem
- The item used for the evolution
-