Class SetLevellingEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.SetLevellingEvent

public class SetLevellingEvent extends net.minecraftforge.eventbus.api.Event
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
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Whether levelling is going to be enabled or disabled.
    final Pokemon
    The Pokémon subject to this.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SetLevellingEvent(Pokemon pokemon, boolean doesLevel)
     
  • Method Summary

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)