Class McbsEditorHomepageTab
java.lang.Object
com.thecsdev.betterstats.api.mcbs.controller.tab.McbsEditorTab
com.thecsdev.betterstats.api.mcbs.controller.tab.McbsEditorHomepageTab
The main "homepage" tab that is selected by default when an
McbsEditor
instance is created. This is the "entrypoint" tab.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanTo prevent theMcbsEditors from opening duplicate tabs, it is essential to override this method along withMcbsEditorTab.hashCode()to enforce non-fungibility.final @NotNull CompletableFuture<List<CreditsSection>> Returns the future that will complete (or has completed) with theCreditsSections information to be displayed on the homepage tab.final @NotNull net.minecraft.network.chat.ComponentThis method provides the display name that will be shown in the user interface for this particular tab within anMcbsEditor.final @NotNull CompletableFuture<List<CreditsSection>> Returns the future that will complete (or has completed) with theCreditsSections containing news information.final inthashCode()To prevent theMcbsEditors from opening duplicate tabs, it is essential to override this method along withMcbsEditorTab.equals(Object)to enforce non-fungibility.final voidrefetch()Refreshes the news and credits information by (re/)fetching from the REST-ful APIs.Methods inherited from class McbsEditorTab
addEditCount, getEditCount
-
Field Details
-
INSTANCE
-
-
Method Details
-
hashCode
public final int hashCode()Description copied from class:McbsEditorTabTo prevent theMcbsEditors from opening duplicate tabs, it is essential to override this method along withMcbsEditorTab.equals(Object)to enforce non-fungibility.- Specified by:
hashCodein classMcbsEditorTab- See Also:
-
equals
Description copied from class:McbsEditorTabTo prevent theMcbsEditors from opening duplicate tabs, it is essential to override this method along withMcbsEditorTab.hashCode()to enforce non-fungibility.- Specified by:
equalsin classMcbsEditorTab- See Also:
-
getDisplayName
@NotNull public final @NotNull net.minecraft.network.chat.Component getDisplayName()Description copied from class:McbsEditorTabThis method provides the display name that will be shown in the user interface for this particular tab within anMcbsEditor.- Specified by:
getDisplayNamein classMcbsEditorTab
-
getCreditsAsync
Returns the future that will complete (or has completed) with theCreditsSections information to be displayed on the homepage tab. -
getNewsAsync
Returns the future that will complete (or has completed) with theCreditsSections containing news information. -
refetch
@Internal public final void refetch()Refreshes the news and credits information by (re/)fetching from the REST-ful APIs.
-