Enum Class MobPostLevelEvent.LevelCause

java.lang.Object
java.lang.Enum<MobPostLevelEvent.LevelCause>
me.lokka30.levelledmobs.events.MobPostLevelEvent.LevelCause
All Implemented Interfaces:
Serializable, Comparable<MobPostLevelEvent.LevelCause>, Constable
Enclosing class:
MobPostLevelEvent

public static enum MobPostLevelEvent.LevelCause extends Enum<MobPostLevelEvent.LevelCause>
When a mob is levelled, the following enum is used to allow plugins to find the cause of the mob being levelled.

NORMAL: Spawned naturally, by a spawn egg, etc. CHANGED_LEVEL: When an existing levelled mob has its level changed.

  • Enum Constant Details

  • Method Details

    • values

      public static MobPostLevelEvent.LevelCause[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MobPostLevelEvent.LevelCause valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null