Class McbsEditorNullTab
java.lang.Object
com.thecsdev.betterstats.api.mcbs.controller.tab.McbsEditorTab
com.thecsdev.betterstats.api.mcbs.controller.tab.McbsEditorNullTab
Placeholder
McbsEditorTab implementation used for when there are no
selected tabs in a given McbsEditor.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final McbsEditorNullTabMain singleton instance of this class. -
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 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 inthashCode()To prevent theMcbsEditors from opening duplicate tabs, it is essential to override this method along withMcbsEditorTab.equals(Object)to enforce non-fungibility.Methods inherited from class McbsEditorTab
addEditCount, getEditCount
-
Field Details
-
INSTANCE
Main singleton instance of this class.
-
-
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
-