public class ExperienceGainEvent
extends net.minecraftforge.fml.common.eventhandler.Event
| Modifier and Type | Field and Description |
|---|---|
PokemonLink |
pokemon
The Pokemon gaining the experience
|
| Constructor and Description |
|---|
ExperienceGainEvent(PokemonLink pokemon,
int experience,
ExperienceGainType type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getExperience()
Gets how much experience will be given currently.
|
ExperienceGainType |
getType()
Gets how the experience has been gained.
|
void |
setExperience(int experience)
Sets the new experience that will be given.
|
public final PokemonLink pokemon
public ExperienceGainEvent(PokemonLink pokemon, int experience, ExperienceGainType type)
public int getExperience()
public void setExperience(int experience)
experience - - The new amount of experience. Negatives will be forced to zero.public ExperienceGainType getType()