Class PlayerXpEvent.LevelChange

  • Enclosing class:
    PlayerXpEvent

    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 Detail

      • levels

        private int levels
    • Constructor Detail

      • LevelChange

        public LevelChange​(PlayerEntity player,
                           int levels)
    • Method Detail

      • getLevels

        public int getLevels()
      • setLevels

        public void setLevels​(int levels)