Class McbsEditorTabGUI<T extends McbsEditorTab>

java.lang.Object
com.thecsdev.common.scene.Node<com.thecsdev.commonmc.api.client.gui.TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.betterstats.api.mcbs.view.tab.McbsEditorTabGUI<T>
All Implemented Interfaces:
com.thecsdev.common.scene.INode<com.thecsdev.commonmc.api.client.gui.TElement>, com.thecsdev.common.scene.INodeBounded<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.common.math.Bounds2i>, com.thecsdev.common.scene.INodeRenderable<com.thecsdev.commonmc.api.client.gui.TElement, com.thecsdev.commonmc.api.client.gui.render.TGuiGraphics>, Iterable<com.thecsdev.commonmc.api.client.gui.TElement>, Collection<com.thecsdev.commonmc.api.client.gui.TElement>
Direct Known Subclasses:
McbsEditorFileTabGUI, McbsEditorHomepageTabGUI, McbsEditorNullTabGUI, McbsEditorSettingsTabGUI

@Environment(CLIENT) public abstract class McbsEditorTabGUI<T extends McbsEditorTab> extends com.thecsdev.commonmc.api.client.gui.TElement
This class serves as the graphical user interface (GUI) for a specific McbsEditorTab. As a subclass of TElement, it is tasked with initializing and rendering the user interface associated with a particular McbsEditorTab within the context of an McbsEditorGUI.
See Also:
  • Field Summary

    Fields inherited from class com.thecsdev.commonmc.api.client.gui.TElement

    eInitialized
  • Constructor Summary

    Constructors
    Constructor
    Description
    McbsEditorTabGUI(T editorTab)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final void
    Registers internal McbsEditorTabGUI factories.
    static final <T extends McbsEditorTab>
    @NotNull McbsEditorTabGUI<T>
    createTabGui(T editorTab)
    Creates a new McbsEditorTabGUI instance for the given McbsEditorTab using the registered factory function.
    final T
    Returns the McbsEditorTab instance associated with this GUI.
    protected final void
     
    protected abstract void
    Subclasses should implement this method to initialize the GUI components specific to the associated McbsEditorTab.
    static final <T extends McbsEditorTab>
    void
    registerFactory(@NotNull Class<T> tabType, @NotNull Function<@NotNull T, @NotNull McbsEditorTabGUI<T>> tabGuiFactory)
    Registers a factory Function for creating McbsEditorTabGUI instances corresponding to a specific type of McbsEditorTab.
    protected final void
     

    Methods inherited from class com.thecsdev.commonmc.api.client.gui.TElement

    addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, inputCallback, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, postRenderCallback, removeRel, renderCallback, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tooltipProperty, toString, visibleProperty

    Methods inherited from class com.thecsdev.common.scene.Node

    add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Iterable

    forEach