public abstract class EvolveEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
EvolveEvent.Constants
Represents all evolve causes
|
static class |
EvolveEvent.Post
Event fired after all the evolution logic is complete, the entity has been spawned (if not already in the world)
and the species/form updated
This event is not cancellable
|
static class |
EvolveEvent.Pre
The event fired before the evolution checks are completed and before any evolution logic is done
Cancelling this will prevent any evolution from occurring
|
Modifier | Constructor and Description |
---|---|
protected |
EvolveEvent(net.minecraft.entity.player.ServerPlayerEntity player,
PixelmonEntity entity,
Evolution evolution,
java.lang.String cause)
Basic constructor for any evolution event
Including the player, pokemon and evolution
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCause()
Gets the cause of the evolution
|
PixelmonEntity |
getEntity()
Gets the entity that is being evolved
|
Evolution |
getEvolution()
Gets the evolution that is taking place
|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
Gets the player the evolution is happening for
|
Pokemon |
getPokemon()
Gets the evolving pokemon
|
boolean |
isInternal()
Checks if the cause was something inside the Pixelmon mod - if false it means it was a plugin or someone made a mistake :))
|
protected EvolveEvent(net.minecraft.entity.player.ServerPlayerEntity player, PixelmonEntity entity, Evolution evolution, java.lang.String cause)
player
- The playerentity
- The entity evolvingevolution
- The evolutioncause
- The evolution causepublic net.minecraft.entity.player.ServerPlayerEntity getPlayer()
public PixelmonEntity getEntity()
public Pokemon getPokemon()
public Evolution getEvolution()
public java.lang.String getCause()
public boolean isInternal()