Class LevelsEvent

  • All Implemented Interfaces:
    Event

    public class LevelsEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onLevels() event.
    • Constructor Detail

      • LevelsEvent

        public LevelsEvent​(java.util.List<QualityLevel> levels,
                           int currentQualityIndex)
    • Method Detail

      • getLevels

        @NonNull
        public java.util.List<QualityLevel> getLevels()
        Returns:
        The full list of qualities, including the new additions. Includes the same information as getQualityLevels().
      • getCurrentQualityIndex

        @NonNull
        public int getCurrentQualityIndex()
        Returns:
        The quality currently loaded