Package com.mojang.realmsclient
Class RealmsMainScreen.NotificationMessageEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<RealmsMainScreen.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<RealmsMainScreen.Entry>
com.mojang.realmsclient.RealmsMainScreen.Entry
com.mojang.realmsclient.RealmsMainScreen.NotificationMessageEntry
- All Implemented Interfaces:
GuiEventListener,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
RealmsMainScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Buttonprivate final List<AbstractWidget> private final RealmsMainScreen.CrossButtonprivate final GridLayoutstatic final intprivate intstatic final intprivate static final intprivate final Componentprivate final FrameLayoutprivate final MultiLineTextWidgetFields inherited from class com.mojang.realmsclient.RealmsMainScreen.Entry
PADDING_X, PADDING_Y, STATUS_LIGHT_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionNotificationMessageEntry(RealmsMainScreen screen, int frameItemHeight, Component text, RealmsNotification.VisitUrl visitUrl) -
Method Summary
Modifier and TypeMethodDescriptiongetText()booleankeyPressed(KeyEvent p_445623_) booleanmouseClicked(MouseButtonEvent p_447212_, boolean p_435417_) private voidrefreshLayout(int width) voidrenderContent(GuiGraphics p_440677_, int p_439917_, int p_439616_, boolean p_440038_, float p_439405_) static inttextWidth(int width) private voidMethods inherited from class com.mojang.realmsclient.RealmsMainScreen.Entry
firstLineY, gameModeTextX, lineHeight, renderClampedString, renderFirstLine, renderGameMode, renderSecondLine, renderStatusLights, renderThirdLine, secondLineY, textX, thirdLineY, versionTextXMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
SIDE_MARGINS
private static final int SIDE_MARGINS- See Also:
-
PADDING
public static final int PADDING- See Also:
-
HEIGHT_WITHOUT_TEXT
public static final int HEIGHT_WITHOUT_TEXT- See Also:
-
text
-
children
-
dismissButton
-
textWidget
-
gridLayout
-
textFrame
-
button
-
lastEntryWidth
private int lastEntryWidth
-
-
Constructor Details
-
NotificationMessageEntry
public NotificationMessageEntry(RealmsMainScreen screen, int frameItemHeight, Component text, RealmsNotification.VisitUrl visitUrl)
-
-
Method Details
-
keyPressed
-
updateEntryWidth
private void updateEntryWidth() -
refreshLayout
private void refreshLayout(int width) -
textWidth
public static int textWidth(int width) -
renderContent
public void renderContent(GuiGraphics p_440677_, int p_439917_, int p_439616_, boolean p_440038_, float p_439405_) - Specified by:
renderContentin classAbstractSelectionList.Entry<RealmsMainScreen.Entry>
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<RealmsMainScreen.Entry>
-
getText
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<RealmsMainScreen.Entry>
-