Class RealmsPdpScreen.PdpHeaderEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<RealmsPdpScreen.AbstractPdpEntry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<RealmsPdpScreen.AbstractPdpEntry>
com.mojang.realmsclient.gui.screens.RealmsPdpScreen.AbstractPdpEntry
com.mojang.realmsclient.gui.screens.RealmsPdpScreen.PdpHeaderEntry
- All Implemented Interfaces:
GuiEventListener, TabOrderedElement, LayoutElement, NarrationSupplier
- Enclosing class:
RealmsPdpScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final @Nullable RealmsPdpScreen.PdpHeaderEntry.SubtitleFields inherited from class RealmsPdpScreen.AbstractPdpEntry
titleFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionPdpHeaderEntry(Component title, @Nullable RealmsPdpScreen.PdpHeaderEntry.Subtitle subtitle) -
Method Summary
Modifier and TypeMethodDescriptionprivate intvoidextractContent(GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float a) private intprivate inttitleX()Methods inherited from class ObjectSelectionList.Entry
mouseClicked, updateNarrationMethods inherited from class AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
capturesInput, charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
DESCRIPTION_ICON_SIZE
private static final int DESCRIPTION_ICON_SIZE- See Also:
-
subtitle
-
-
Constructor Details
-
PdpHeaderEntry
-
-
Method Details
-
extractContent
public void extractContent(GuiGraphicsExtractor graphics, int mouseX, int mouseY, boolean hovered, float a) - Specified by:
extractContentin classAbstractSelectionList.Entry<RealmsPdpScreen.AbstractPdpEntry>
-
entryHeight
private int entryHeight() -
textHeight
private int textHeight() -
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<RealmsPdpScreen.AbstractPdpEntry>
-
titleX
private int titleX()
-