Class CreditsPanel
java.lang.Object
com.thecsdev.common.scene.Node<com.thecsdev.commonmc.api.client.gui.TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.panel.TPanelElement
com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Paintable
com.thecsdev.betterstats.client.gui.panel.CreditsPanel
- 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>
@Environment(CLIENT)
public final class CreditsPanel
extends com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Paintable
A panel GUI element that displays "Credits" information for this mod.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.thecsdev.commonmc.api.client.gui.panel.TPanelElement
com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Paintable, com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Transparent -
Field Summary
Fields inherited from class com.thecsdev.commonmc.api.client.gui.panel.TPanelElement
COLOR_BACKGROUND, COLOR_OUTLINE, COLOR_OUTLINE_FOCUSEDFields inherited from class com.thecsdev.commonmc.api.client.gui.TElement
eInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidstatic final voidinitSection(@NotNull com.thecsdev.commonmc.api.client.gui.panel.TPanelElement panel, @NotNull CreditsSection section) Initializes a credits section GUI inside this panel.Methods inherited from class com.thecsdev.commonmc.api.client.gui.panel.TPanelElement.Paintable
backgroundColorProperty, focusedOutlineColorProperty, outlineColorProperty, postRenderCallback, renderCallbackMethods inherited from class com.thecsdev.commonmc.api.client.gui.panel.TPanelElement
addAllVertically, computeNextXBounds, computeNextYBounds, inputCallback, scroll, scrollAmountProperty, scrollPaddingProperty, scrollSensitivityPropertyMethods 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, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, removeRel, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tickCallback, tooltipProperty, toString, visiblePropertyMethods 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
-
Constructor Details
-
CreditsPanel
public CreditsPanel(@NotNull @NotNull CompletableFuture<List<CreditsSection>> future) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
initCallback
protected final void initCallback()- Overrides:
initCallbackin classcom.thecsdev.commonmc.api.client.gui.TElement
-
initSection
public static final void initSection(@NotNull @NotNull com.thecsdev.commonmc.api.client.gui.panel.TPanelElement panel, @NotNull @NotNull CreditsSection section) throws NullPointerException Initializes a credits section GUI inside this panel.- Parameters:
panel- TheTPanelElementonto which the credits section will be initialized.section- The credits section to initialize.- Throws:
NullPointerException- If the argument isnull.
-