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 boolean
checkedMcoAvailability
private static Identifier
field_22700
private static boolean
hasUnreadNews
private static Identifier
INVITE_ICON
private int
numberOfPendingInvites
private static RealmsDataFetcher
REALMS_DATA_FETCHER
private static Identifier
TRIAL_ICON
private static boolean
trialAvailable
private static boolean
validClient
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields 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 void
checkIfMcoEnabled()
private void
drawIcons(MatrixStack matrices, int mouseX, int mouseY)
void
init()
Called when a screen should be initialized.private boolean
method_25169()
private boolean
method_25170()
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
tick()
Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, row
Methods 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, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods 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, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods 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 opened or resized.
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classRealmsScreen
-
method_25169
private boolean method_25169() -
method_25170
private boolean method_25170() -
checkIfMcoEnabled
private void checkIfMcoEnabled() -
render
-
drawIcons
-
removed
public void removed()
-