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 TypeClassDescriptionprivate static interfaceNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable RealmsNotificationsScreen.DataFetcherConfigurationprivate static booleanprivate static booleanprivate static final Identifierprivate static final Identifierprivate intprivate final RealmsNotificationsScreen.DataFetcherConfigurationprivate @Nullable DataFetcher.Subscriptionprivate final RealmsNotificationsScreen.DataFetcherConfigurationprivate static final Identifierprivate static booleanprivate static final Identifierprivate final CompletableFuture<Boolean> Fields inherited from class RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, 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 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()private voidaddNewsAndInvitesSubscriptions(RealmsDataFetcher dataSource, DataFetcher.Subscription result) private voidaddNotificationsSubscriptions(RealmsDataFetcher dataSource, DataFetcher.Subscription result) voidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) private voidextractIcons(GuiGraphicsExtractor graphics) voidextractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a) private @Nullable RealmsNotificationsScreen.DataFetcherConfigurationprivate booleanvoidinit()private booleanvoidtick()Methods inherited from class RealmsScreen
realmsLogo, rowMethods inherited from class Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface 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
-
added
-
getConfiguration
-
tick
-
getRealmsNotificationsEnabled
private boolean getRealmsNotificationsEnabled() -
inTitleScreen
private boolean inTitleScreen() -
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-
extractIcons
-
addNewsAndInvitesSubscriptions
private void addNewsAndInvitesSubscriptions(RealmsDataFetcher dataSource, DataFetcher.Subscription result) -
addNotificationsSubscriptions
private void addNotificationsSubscriptions(RealmsDataFetcher dataSource, DataFetcher.Subscription result)
-