Module gomint.api

Interface Scoreboard


  • public interface Scoreboard
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • addDisplay

        ScoreboardDisplay addDisplay​(DisplaySlot slot,
                                     String objectiveName,
                                     String displayName)
        Add a new display slot to this scoreboard
        Parameters:
        slot - which should be shown
        objectiveName - which should be used
        displayName - of the slot
      • addDisplay

        ScoreboardDisplay addDisplay​(DisplaySlot slot,
                                     String objectiveName,
                                     String displayName,
                                     SortOrder sortOrder)
        Add a new display slot to this scoreboard with a sort order
        Parameters:
        slot - which should be shown
        objectiveName - which should be used
        displayName - of the slot
        sortOrder - which sorts the ids
      • getDisplay

        ScoreboardDisplay getDisplay​(DisplaySlot slot)
        Get a display from its slot
        Parameters:
        slot - for the display
        Returns:
        the display or null when no display has been added to this slot
      • removeDisplay

        void removeDisplay​(DisplaySlot slot)
        Remove a display
        Parameters:
        slot - which should be removed