Interface TabList


  • public interface TabList
    Represents the tab list of a Player.
    • Method Detail

      • setHeaderAndFooter

        void setHeaderAndFooter​(Component header,
                                Component footer)
        Sets the tab list header and footer for the player.
        Parameters:
        header - the header component
        footer - the footer component
      • clearHeaderAndFooter

        void clearHeaderAndFooter()
        Clears the tab list header and footer for the player.
      • containsEntry

        boolean containsEntry​(UUID uuid)
        Determines if the specified entry exists in the tab list.
        Parameters:
        uuid - the UUID of the entry
        Returns:
        true if it exists, false if it does not
      • buildEntry

        @Deprecated
        TabListEntry buildEntry​(GameProfile profile,
                                @Nullable Component displayName,
                                int latency,
                                int gameMode)
        Deprecated.
        Internal usage. Use TabListEntry.Builder instead.
        Builds a tab list entry.
        Parameters:
        profile - profile
        displayName - display name
        latency - latency
        gameMode - game mode
        Returns:
        entry