Class ExperienceGainEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.ExperienceGainEvent

public class ExperienceGainEvent extends BattleEvent
Fired when experience is gained. The experience field can be modified to boost experience. Multiplication of the experience as opposed to irrelative summation/subtraction is advised.
  • Field Details

    • pokemon

      public final PokemonLink pokemon
      The Pokemon gaining the experience
  • Constructor Details

  • Method Details

    • isFromBattle

      public boolean isFromBattle()
    • getExperience

      public int getExperience()
      Gets how much experience will be given currently.
    • setExperience

      public void setExperience(int experience)
      Sets the new experience that will be given.
      Parameters:
      experience - - The new amount of experience. Negatives will be forced to zero.
    • getType

      public ExperienceGainType getType()
      Gets how the experience has been gained.