Class SetLevellingEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.SetLevellingEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent

public class SetLevellingEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
Event fired when a Pokémon's levelling is toggled.

Cancelling this event will prevent the change from taking place. Setting the boolean will also modify what happens.

Created by Waterdude

Since:
April 29, 2021
  • Field Details

    • pokemon

      public final Pokemon pokemon
      The Pokémon subject to this.
    • doesLevel

      public boolean doesLevel
      Whether levelling is going to be enabled or disabled.
  • Constructor Details

    • SetLevellingEvent

      public SetLevellingEvent(Pokemon pokemon, boolean doesLevel)