Class RealmsNotificationsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.gui.screens.RealmsNotificationsScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanprivate static booleanprivate static final ResourceLocationprivate static final ResourceLocationprivate intprivate final RealmsNotificationsScreen.DataFetcherConfigurationprivate DataFetcher.Subscriptionprivate final RealmsNotificationsScreen.DataFetcherConfigurationprivate static final ResourceLocationprivate static booleanprivate static final ResourceLocationprivate final CompletableFuture<Boolean> Fields inherited from class net.minecraft.realms.RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, EXPIRATION_NOTIFICATION_DAYS, HARDCORE_HEART_SIZE, LOGO_HEIGHT, LOGO_LOCATION, LOGO_TEXTURE_HEIGHT, LOGO_TEXTURE_WIDTH, LOGO_WIDTH, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()(package private) voidaddNewsAndInvitesSubscriptions(RealmsDataFetcher pDataFetcher, DataFetcher.Subscription pSubscription) (package private) voidaddNotificationsSubscriptions(RealmsDataFetcher pDataFetcher, DataFetcher.Subscription pSubscription) private voiddrawIcons(GuiGraphics pGuiGraphics) private booleanvoidinit()private booleanvoidrender(GuiGraphics p_282587_, int p_282992_, int p_283028_, float p_281605_) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics p_294179_, int p_294689_, int p_294445_, float p_294874_) voidtick()Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, realmsLogo, rowMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods 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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
UNSEEN_NOTIFICATION_SPRITE
-
NEWS_SPRITE
-
INVITE_SPRITE
-
TRIAL_AVAILABLE_SPRITE
-
validClient
-
realmsDataSubscription
-
currentConfiguration
-
numberOfPendingInvites
private volatile int numberOfPendingInvites -
trialAvailable
private static boolean trialAvailable -
hasUnreadNews
private static boolean hasUnreadNews -
hasUnseenNotifications
private static boolean hasUnseenNotifications -
showAll
-
onlyNotifications
-
-
Constructor Details
-
RealmsNotificationsScreen
public RealmsNotificationsScreen()
-
-
Method Details
-
init
public void init() -
added
public void added() -
getConfiguration
-
tick
public void tick() -
getRealmsNotificationsEnabled
private boolean getRealmsNotificationsEnabled() -
inTitleScreen
private boolean inTitleScreen() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_282587_- the GuiGraphics object used for rendering.p_282992_- the x-coordinate of the mouse cursor.p_283028_- the y-coordinate of the mouse cursor.p_281605_- the partial tick time.
-
renderBackground
- Overrides:
renderBackgroundin classScreen
-
drawIcons
-
addNewsAndInvitesSubscriptions
void addNewsAndInvitesSubscriptions(RealmsDataFetcher pDataFetcher, DataFetcher.Subscription pSubscription) -
addNotificationsSubscriptions
void addNotificationsSubscriptions(RealmsDataFetcher pDataFetcher, DataFetcher.Subscription pSubscription)
-