Class MegaEvolutionEvent.Battle
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent
com.pixelmonmod.pixelmon.api.events.MegaEvolutionEvent.Battle
- Enclosing class:
- MegaEvolutionEvent
Fired when the battle 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
ConstructorDescriptionBattle
(net.minecraft.server.level.ServerPlayer player, PixelmonWrapper pixelmonWrapper, net.minecraft.world.item.ItemStack stone, boolean ultraBurst) Battle event constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the battle wrapper for the evolving pokemonMethods 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
-
Battle
public Battle(net.minecraft.server.level.ServerPlayer player, PixelmonWrapper pixelmonWrapper, net.minecraft.world.item.ItemStack stone, boolean ultraBurst) Battle event constructor- Parameters:
pixelmonWrapper
- The wrapper of the pokemon evolvingstone
- The item used for the evolutionultraBurst
- If they're ultrabursting
-
-
Method Details
-
getPixelmonWrapper
Gets the battle wrapper for the evolving pokemon- Returns:
- The pokemon evolving
-