Package com.mojang.realmsclient
Class RealmsMainScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.RealmsMainScreen
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable,IScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) class(package private) static enum(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Buttonprivate static final ResourceLocationprivate Buttonprivate intprivate intprivate static booleanprivate static booleanprivate intprivate Buttonprivate static final ResourceLocationprivate static final ITextComponentprivate Buttonprivate ReentrantLockprivate booleanprivate Buttonprivate static final ResourceLocationprivate static final ResourceLocationprivate booleanprivate static final ResourceLocationprivate static final ResourceLocationprivate IBidiRendererprivate booleanprivate static booleanprivate booleanprivate booleanprivate RealmsMainScreen.ServerStateprivate static final ResourceLocationprivate static final ResourceLocationprivate final com.google.common.util.concurrent.RateLimiterprivate booleanprivate final Screenprivate static intprivate static final ResourceLocationprivate static final ITextComponentprivate Buttonprivate static final org.apache.logging.log4j.Loggerprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ITextComponentprivate Buttonprivate Stringprivate static final ITextComponentprivate intprivate static final ResourceLocationprivate static final ResourceLocationprivate static booleanprivate static final ITextComponentprivate Buttonprivate Buttonprivate static final ResourceLocationprivate static final ITextComponentprivate booleanprivate static final ResourceLocationprivate static final RealmsDataFetcherprivate RealmsMainScreen.ServerListprivate static Screenprivate List<RealmsServer>private static booleanprivate Buttonprivate static final ITextComponentprivate longprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate booleanprivate Buttonprivate static final ITextComponentprivate static final ITextComponentprivate static final ITextComponentprivate static List<ResourceLocation>private List<ITextComponent>private static final ITextComponentprivate static final ResourceLocationprivate static final List<ITextComponent>private booleanprivate static final ResourceLocationFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, widthFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancharTyped(char p_231042_1_, int p_231042_2_) private voidprivate voidprivate voidprivate voidconfigureClicked(RealmsServer p_223966_1_) private voiddrawClose(MatrixStack p_237626_1_, int p_237626_2_, int p_237626_3_, int p_237626_4_, int p_237626_5_) private voiddrawConfigure(MatrixStack p_237633_1_, int p_237633_2_, int p_237633_3_, int p_237633_4_, int p_237633_5_) private voiddrawExpired(MatrixStack p_237614_1_, int p_237614_2_, int p_237614_3_, int p_237614_4_, int p_237614_5_) private voiddrawExpiring(MatrixStack p_237606_1_, int p_237606_2_, int p_237606_3_, int p_237606_4_, int p_237606_5_, int p_237606_6_) private voiddrawInvitationPendingIcon(MatrixStack p_237581_1_, int p_237581_2_, int p_237581_3_, int p_237581_4_, int p_237581_5_, boolean p_237581_6_, boolean p_237581_7_) private voiddrawLeave(MatrixStack p_237630_1_, int p_237630_2_, int p_237630_3_, int p_237630_4_, int p_237630_5_) private voiddrawOpen(MatrixStack p_237620_1_, int p_237620_2_, int p_237620_3_, int p_237620_4_, int p_237620_5_) private voiddrawPopup(MatrixStack p_237605_1_, int p_237605_2_, int p_237605_3_) private voiddrawRealmsLogo(MatrixStack p_237579_1_, int p_237579_2_, int p_237579_3_) private RealmsServerfindServer(long p_223967_1_) private static booleanvoidinit()private booleaninPendingInvitationArea(double p_223931_1_, double p_223931_3_) private booleanisOutsidePopup(double p_223979_1_, double p_223979_3_) private booleanisSelfOwnedNonExpiredServer(RealmsServer p_223991_1_) private booleanisSelfOwnedServer(RealmsServer p_223885_1_) booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) private voidleaveClicked(RealmsServer p_223906_1_) private voidleaveServer(boolean p_237625_1_) booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) private voidprivate voidonRenew()private voidpendingButtonPress(Button p_237598_1_) private voidvoidplay(RealmsServer p_223911_1_, Screen p_223911_2_) private intpopupX0()private intpopupY0()voidremoved()voidprivate voidremoveServer(RealmsServer p_243059_1_) voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) private voidrenderLocal(MatrixStack p_237604_1_) private voidrenderMoreInfo(MatrixStack p_237580_1_, int p_237580_2_, int p_237580_3_, int p_237580_4_, int p_237580_5_, boolean p_237580_6_) protected voidrenderMousehoverTooltip(MatrixStack p_237583_1_, List<ITextComponent> p_237583_2_, int p_237583_3_, int p_237583_4_) private voidrenderNews(MatrixStack p_237582_1_, int p_237582_2_, int p_237582_3_, boolean p_237582_4_, int p_237582_5_, int p_237582_6_, boolean p_237582_7_, boolean p_237582_8_) private voidrenderStage(MatrixStack p_237613_1_) private voidprivate voidsetTooltip(ITextComponent... p_237603_1_) private booleanshouldConfigureButtonBeVisible(RealmsServer p_223941_1_) private booleanshouldLeaveButtonBeVisible(RealmsServer p_223959_1_) private booleanshouldPlayButtonBeActive(RealmsServer p_223897_1_) private booleanshouldRenewButtonBeActive(RealmsServer p_223920_1_) private booleanbooleanprivate booleanprivate voidprivate voidprivate voidprivate voidvoidtick()private voidupdateButtonStates(RealmsServer p_223915_1_) static voidupdateTeaserImages(IResourceManager p_227932_0_) Methods inherited from class net.minecraft.realms.RealmsScreen
narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ON_ICON_LOCATION
-
OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
-
LEAVE_ICON_LOCATION
-
INVITATION_ICONS_LOCATION
-
INVITE_ICON_LOCATION
-
WORLDICON_LOCATION
-
LOGO_LOCATION
-
CONFIGURE_LOCATION
-
QUESTIONMARK_LOCATION
-
NEWS_LOCATION
-
POPUP_LOCATION
-
DARKEN_LOCATION
-
CROSS_ICON_LOCATION
-
TRIAL_ICON_LOCATION
-
BUTTON_LOCATION
-
NO_PENDING_INVITES_TEXT
-
PENDING_INVITES_TEXT
-
TRIAL_MESSAGE_LINES
-
SERVER_UNITIALIZED_TEXT
-
SUBSCRIPTION_EXPIRED_TEXT
-
SUBSCRIPTION_RENEW_TEXT
-
TRIAL_EXPIRED_TEXT
-
SUBSCRIPTION_CREATE_TEXT
-
SELECT_MINIGAME_PREFIX
-
POPUP_TEXT
-
SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRES_SOON_TOOLTIP
-
SERVER_EXPIRES_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
-
LEAVE_SERVER_TOOLTIP
-
CONFIGURE_SERVER_TOOLTIP
-
SERVER_INFO_TOOLTIP
-
NEWS_TOOLTIP
-
REALMS_DATA_FETCHER
-
overrideConfigure
private static boolean overrideConfigure -
lastScrollYPosition
private static int lastScrollYPosition -
hasParentalConsent
private static volatile boolean hasParentalConsent -
checkedParentalConsent
private static volatile boolean checkedParentalConsent -
checkedClientCompatability
private static volatile boolean checkedClientCompatability -
realmsGenericErrorScreen
-
regionsPinged
private static boolean regionsPinged -
inviteNarrationLimiter
private final com.google.common.util.concurrent.RateLimiter inviteNarrationLimiter -
dontSetConnectedToRealms
private boolean dontSetConnectedToRealms -
lastScreen
-
realmSelectionList
-
selectedServerId
private long selectedServerId -
playButton
-
backButton
-
renewButton
-
configureButton
-
leaveButton
-
toolTip
-
realmsServers
-
numberOfPendingInvites
private volatile int numberOfPendingInvites -
animTick
private int animTick -
hasFetchedServers
private boolean hasFetchedServers -
popupOpenedByUser
private boolean popupOpenedByUser -
justClosedPopup
private boolean justClosedPopup -
trialsAvailable
private volatile boolean trialsAvailable -
createdTrial
private volatile boolean createdTrial -
showingPopup
private volatile boolean showingPopup -
hasUnreadNews
private volatile boolean hasUnreadNews -
newsLink
-
carouselIndex
private int carouselIndex -
carouselTick
private int carouselTick -
hasSwitchedCarouselImage
private boolean hasSwitchedCarouselImage -
keyCombos
-
clicks
private int clicks -
connectLock
-
formattedPopup
-
hoveredElement
-
showPopupButton
-
pendingInvitesButton
-
newsButton
-
createTrialButton
-
buyARealmButton
-
closeButton
-
-
Constructor Details
-
RealmsMainScreen
-
-
Method Details
-
shouldShowMessageInList
private boolean shouldShowMessageInList() -
shouldShowPopup
public boolean shouldShowPopup() -
init
public void init() -
hasParentalConsent
private static boolean hasParentalConsent() -
addButtons
public void addButtons() -
updateButtonStates
-
shouldShowPopupButton
private boolean shouldShowPopupButton() -
shouldPlayButtonBeActive
-
shouldRenewButtonBeActive
-
shouldConfigureButtonBeVisible
-
shouldLeaveButtonBeVisible
-
tick
public void tick()- Specified by:
tickin interfaceIScreen- Overrides:
tickin classRealmsScreen
-
pingRegions
private void pingRegions() -
getOwnedNonExpiredWorldIds
-
removed
public void removed() -
onRenew
private void onRenew() -
checkClientCompatability
private void checkClientCompatability() -
checkUnreadNews
private void checkUnreadNews() -
checkParentalConsent
private void checkParentalConsent() -
switchToStage
private void switchToStage() -
switchToLocal
private void switchToLocal() -
switchToProd
private void switchToProd() -
stopRealmsFetcher
private void stopRealmsFetcher() -
configureClicked
-
leaveClicked
-
saveListScrollPosition
private void saveListScrollPosition() -
findServer
-
leaveServer
private void leaveServer(boolean p_237625_1_) -
removeServer
-
removeSelection
public void removeSelection() -
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler- Overrides:
keyPressedin classScreen
-
onClosePopup
private void onClosePopup() -
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) -
render
- Specified by:
renderin interfaceIRenderable- Overrides:
renderin classScreen
-
drawRealmsLogo
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) -
isOutsidePopup
private boolean isOutsidePopup(double p_223979_1_, double p_223979_3_) -
drawPopup
-
popupX0
private int popupX0() -
popupY0
private int popupY0() -
drawInvitationPendingIcon
private void drawInvitationPendingIcon(MatrixStack p_237581_1_, int p_237581_2_, int p_237581_3_, int p_237581_4_, int p_237581_5_, boolean p_237581_6_, boolean p_237581_7_) -
inPendingInvitationArea
private boolean inPendingInvitationArea(double p_223931_1_, double p_223931_3_) -
play
-
isSelfOwnedServer
-
isSelfOwnedNonExpiredServer
-
drawExpired
private void drawExpired(MatrixStack p_237614_1_, int p_237614_2_, int p_237614_3_, int p_237614_4_, int p_237614_5_) -
drawExpiring
private void drawExpiring(MatrixStack p_237606_1_, int p_237606_2_, int p_237606_3_, int p_237606_4_, int p_237606_5_, int p_237606_6_) -
drawOpen
private void drawOpen(MatrixStack p_237620_1_, int p_237620_2_, int p_237620_3_, int p_237620_4_, int p_237620_5_) -
drawClose
private void drawClose(MatrixStack p_237626_1_, int p_237626_2_, int p_237626_3_, int p_237626_4_, int p_237626_5_) -
drawLeave
private void drawLeave(MatrixStack p_237630_1_, int p_237630_2_, int p_237630_3_, int p_237630_4_, int p_237630_5_) -
drawConfigure
private void drawConfigure(MatrixStack p_237633_1_, int p_237633_2_, int p_237633_3_, int p_237633_4_, int p_237633_5_) -
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack p_237583_1_, List<ITextComponent> p_237583_2_, int p_237583_3_, int p_237583_4_) -
renderMoreInfo
private void renderMoreInfo(MatrixStack p_237580_1_, int p_237580_2_, int p_237580_3_, int p_237580_4_, int p_237580_5_, boolean p_237580_6_) -
renderNews
private void renderNews(MatrixStack p_237582_1_, int p_237582_2_, int p_237582_3_, boolean p_237582_4_, int p_237582_5_, int p_237582_6_, boolean p_237582_7_, boolean p_237582_8_) -
renderLocal
-
renderStage
-
newScreen
-
setTooltip
-
pendingButtonPress
-