Class RealmsNotificationsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsNotificationsScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsNotificationsScreen extends RealmsScreen
-
Field Summary
Fields Modifier and Type Field Description private static booleancheckedMcoAvailabilityprivate static Identifierfield_22700private static booleanhasUnreadNewsprivate static IdentifierINVITE_ICONprivate intnumberOfPendingInvitesprivate static RealmsDataFetcherREALMS_DATA_FETCHERprivate static IdentifierTRIAL_ICONprivate static booleantrialAvailableprivate static booleanvalidClientFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsNotificationsScreen() -
Method Summary
Modifier and Type Method Description private voidcheckIfMcoEnabled()private voiddrawIcons(MatrixStack matrices, int mouseX, int mouseY)voidinit()Called when a screen should be initialized.private booleanmethod_25169()private booleanmethod_25170()voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidtick()Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
INVITE_ICON
-
TRIAL_ICON
-
field_22700
-
REALMS_DATA_FETCHER
-
checkedMcoAvailability
private static boolean checkedMcoAvailability -
trialAvailable
private static boolean trialAvailable -
validClient
private static boolean validClient -
hasUnreadNews
private static boolean hasUnreadNews -
numberOfPendingInvites
private volatile int numberOfPendingInvites
-
-
Constructor Details
-
RealmsNotificationsScreen
public RealmsNotificationsScreen()
-
-
Method Details
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is
openedor resized. -
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classRealmsScreen
-
method_25169
private boolean method_25169() -
method_25170
private boolean method_25170() -
checkIfMcoEnabled
private void checkIfMcoEnabled() -
render
-
drawIcons
-
removed
public void removed()
-