Class PlayerXpEvent.LevelChange

Enclosing class:

public static class PlayerXpEvent.LevelChange extends PlayerXpEvent
This event is fired when the player's experience level changes through the PlayerEntity#addExperienceLevel method. It can be cancelled, and no further processing will be done.
  • Field Details

    • levels

      private int levels
  • Constructor Details

    • LevelChange

      public LevelChange(PlayerEntity player, int levels)
  • Method Details

    • getLevels

      public int getLevels()
    • setLevels

      public void setLevels(int levels)