类 RealmsMainScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.realms.RealmsScreen
com.mojang.realmsclient.RealmsMainScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) class
(专用程序包) class
(专用程序包) static class
(专用程序包) class
(专用程序包) class
(专用程序包) class
(专用程序包) class
(专用程序包) static interface
(专用程序包) class
(专用程序包) class
(专用程序包) class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明(专用程序包) int
private Button
private static final int
private static final int
private static final int
private Button
private int
private int
(专用程序包) static boolean
(专用程序包) static boolean
private Button
private static final Component
private Button
private ReentrantLock
private boolean
private Button
(专用程序包) static final ResourceLocation
private static final ResourceLocation
private DataFetcher.Subscription
private boolean
private static final ResourceLocation
private static final ResourceLocation
private static final int
private MultiLineLabel
private boolean
(专用程序包) static boolean
private boolean
(专用程序包) boolean
private static final int
(专用程序包) static final ResourceLocation
(专用程序包) static final ResourceLocation
(专用程序包) static final ResourceLocation
private final com.google.common.util.concurrent.RateLimiter
private boolean
(专用程序包) long
(专用程序包) final Screen
private static int
private static final Component
private Button
(专用程序包) static final org.slf4j.Logger
private static final int
private static final ResourceLocation
private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final Component
private Button
(专用程序包) String
private final List<RealmsNotification>
(专用程序包) int
private static final ResourceLocation
private static final ResourceLocation
private static boolean
private static final Component
private Button
private static final ResourceLocation
private static final Component
(专用程序包) boolean
(专用程序包) static Screen
private boolean
private List<RealmsServer>
private static boolean
private Button
(专用程序包) static final Component
private static final Component
private static final Component
private static final Component
private static final Component
private static final Component
(专用程序包) static final Component
private RealmsServerList
private boolean
private Button
(专用程序包) static final Component
private static final Component
private static List<ResourceLocation>
(专用程序包) static final Component
private static final ResourceLocation
(专用程序包) static final Component
private boolean
(专用程序包) static final Component
(专用程序包) static final ResourceLocation
从类继承的字段 net.minecraft.realms.RealmsScreen
COLOR_BLACK, COLOR_BRIGHT_YELLOW, COLOR_BUTTON_YELLOW, COLOR_DARK_GRAY, COLOR_DARK_GREEN, COLOR_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED, COLOR_RED_FADE, COLOR_WHITE, COLOR_YELLOW, COMPONENT_HEIGHT, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT, UPDATE_BREAKS_ADVENTURE_URL
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private void
addEntriesForNotification
(RealmsMainScreen.RealmSelectionList pSelectionList, RealmsNotification pNotification) void
void
void
private static <T> void
callRealmsClient
(RealmsMainScreen.RealmsCall<T> pCall, Consumer<T> pOnFinish) boolean
charTyped
(char pCodePoint, int pModifiers) private void
(专用程序包) void
private void
configureClicked
(RealmsServer pRealmsServer) (专用程序包) void
dismissNotification
(UUID pUuid) (专用程序包) void
drawClose
(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) (专用程序包) void
drawExpired
(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) (专用程序包) void
drawExpiring
(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, int pDaysLeft) (专用程序包) void
drawOpen
(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY) private void
drawPopup
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) private RealmsServer
private static boolean
void
init()
private DataFetcher.Subscription
initDataFetcher
(RealmsDataFetcher pDataFetcher) private boolean
isOutsidePopup
(double pMouseX, double pMouseY) private boolean
isSelfOwnedNonExpiredServer
(RealmsServer pServer) (专用程序包) boolean
isSelfOwnedServer
(RealmsServer pServer) boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) private void
leaveClicked
(RealmsServer pRealmsServer) private void
leaveServer
(boolean pConfirmed, RealmsServer pServer) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) (专用程序包) void
private void
onRenew
(RealmsServer pRealmsServer) private void
void
play
(RealmsServer pRealmsServer, Screen pLastScreen) (专用程序包) int
popupX0()
(专用程序包) int
popupY0()
(专用程序包) void
private void
(专用程序包) void
removeServer
(RealmsServer pServer) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) private void
renderLocal
(GuiGraphics pGuiGraphics) (专用程序包) void
renderNews
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, boolean pHasUnreadNews, int pX, int pY, boolean pIsHoveredOrFocused, boolean pActive) private void
renderStage
(GuiGraphics pGuiGraphics) void
private void
void
setCreatedTrial
(boolean pCreatedTrial) private boolean
shouldConfigureButtonBeActive
(RealmsServer pRealmsServer) private boolean
shouldLeaveButtonBeActive
(RealmsServer pRealmsServer) (专用程序包) boolean
shouldPlayButtonBeActive
(RealmsServer pRealmsServer) private boolean
shouldRenewButtonBeActive
(RealmsServer pRealmsServer) private boolean
boolean
private boolean
private void
private void
private void
void
tick()
(专用程序包) void
updateButtonStates
(RealmsServer pRealmsServer) static void
updateTeaserImages
(ResourceManager pResourceManager) 从类继承的方法 net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
LOGGER
static final org.slf4j.Logger LOGGER -
ON_ICON_LOCATION
-
OFF_ICON_LOCATION
-
EXPIRED_ICON_LOCATION
-
EXPIRES_SOON_ICON_LOCATION
-
INVITATION_ICONS_LOCATION
-
INVITE_ICON_LOCATION
-
WORLDICON_LOCATION
-
LOGO_LOCATION
-
NEWS_LOCATION
-
POPUP_LOCATION
-
DARKEN_LOCATION
-
CROSS_ICON_LOCATION
-
TRIAL_ICON_LOCATION
-
INFO_ICON_LOCATION
-
TRIAL_MESSAGE_LINES
-
SERVER_UNITIALIZED_TEXT
-
SUBSCRIPTION_EXPIRED_TEXT
-
SUBSCRIPTION_RENEW_TEXT
-
TRIAL_EXPIRED_TEXT
-
SELECT_MINIGAME_PREFIX
-
POPUP_TEXT
-
PLAY_TEXT
-
LEAVE_SERVER_TEXT
-
CONFIGURE_SERVER_TEXT
-
SERVER_EXPIRED_TOOLTIP
-
SERVER_EXPIRES_SOON_TOOLTIP
-
SERVER_EXPIRES_IN_DAY_TOOLTIP
-
SERVER_OPEN_TOOLTIP
-
SERVER_CLOSED_TOOLTIP
-
NEWS_TOOLTIP
-
UNITIALIZED_WORLD_NARRATION
-
TRIAL_TEXT
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- 另请参阅:
-
BUTTON_TOP_ROW_WIDTH
private static final int BUTTON_TOP_ROW_WIDTH- 另请参阅:
-
BUTTON_BOTTOM_ROW_WIDTH
private static final int BUTTON_BOTTOM_ROW_WIDTH- 另请参阅:
-
FOOTER_HEIGHT
private static final int FOOTER_HEIGHT- 另请参阅:
-
LOGO_WIDTH
private static final int LOGO_WIDTH- 另请参阅:
-
LOGO_HEIGHT
private static final int LOGO_HEIGHT- 另请参阅:
-
LOGO_TEXTURE_WIDTH
private static final int LOGO_TEXTURE_WIDTH- 另请参阅:
-
LOGO_TEXTURE_HEIGHT
private static final int LOGO_TEXTURE_HEIGHT- 另请参阅:
-
LOGO_PADDING
private static final int LOGO_PADDING- 另请参阅:
-
HEADER_HEIGHT
private static final int HEADER_HEIGHT- 另请参阅:
-
dataSubscription
-
serverList
-
handledSeenNotifications
-
overrideConfigure
private static boolean overrideConfigure -
lastScrollYPosition
private static int lastScrollYPosition -
hasParentalConsent
static volatile boolean hasParentalConsent -
checkedParentalConsent
static volatile boolean checkedParentalConsent -
checkedClientCompatability
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
RealmsMainScreen.RealmSelectionList realmSelectionList -
realmsSelectionListAdded
private boolean realmsSelectionListAdded -
playButton
-
backButton
-
renewButton
-
configureButton
-
leaveButton
-
realmsServers
-
numberOfPendingInvites
volatile int numberOfPendingInvites -
animTick
int animTick -
hasFetchedServers
private boolean hasFetchedServers -
popupOpenedByUser
boolean popupOpenedByUser -
justClosedPopup
private boolean justClosedPopup -
trialsAvailable
private volatile boolean trialsAvailable -
createdTrial
private volatile boolean createdTrial -
showingPopup
private volatile boolean showingPopup -
hasUnreadNews
volatile boolean hasUnreadNews -
newsLink
-
carouselIndex
private int carouselIndex -
carouselTick
private int carouselTick -
hasSwitchedCarouselImage
private boolean hasSwitchedCarouselImage -
keyCombos
-
lastClickTime
long lastClickTime -
connectLock
-
formattedPopup
-
notifications
-
showPopupButton
-
pendingInvitesButton
-
newsButton
-
createTrialButton
-
buyARealmButton
-
closeButton
-
-
构造器详细资料
-
RealmsMainScreen
-
-
方法详细资料
-
shouldShowMessageInList
private boolean shouldShowMessageInList() -
shouldShowPopup
public boolean shouldShowPopup() -
init
public void init() -
hasParentalConsent
private static boolean hasParentalConsent() -
addTopButtons
public void addTopButtons() -
addMiddleButtons
public void addMiddleButtons() -
updateButtonStates
-
shouldShowPopupButton
private boolean shouldShowPopupButton() -
shouldPlayButtonBeActive
-
shouldRenewButtonBeActive
-
shouldConfigureButtonBeActive
-
shouldLeaveButtonBeActive
-
tick
public void tick() -
initDataFetcher
-
callRealmsClient
private static <T> void callRealmsClient(RealmsMainScreen.RealmsCall<T> pCall, Consumer<T> pOnFinish) -
refreshRealmsSelectionList
private void refreshRealmsSelectionList() -
addEntriesForNotification
private void addEntriesForNotification(RealmsMainScreen.RealmSelectionList pSelectionList, RealmsNotification pNotification) -
refreshFetcher
void refreshFetcher() -
pingRegions
private void pingRegions() -
getOwnedNonExpiredWorldIds
-
setCreatedTrial
public void setCreatedTrial(boolean pCreatedTrial) -
onRenew
-
checkClientCompatability
private void checkClientCompatability() -
checkParentalConsent
void checkParentalConsent() -
switchToStage
private void switchToStage() -
switchToLocal
private void switchToLocal() -
switchToProd
private void switchToProd() -
configureClicked
-
leaveClicked
-
saveListScrollPosition
private void saveListScrollPosition() -
getSelectedServer
-
leaveServer
-
removeServer
-
dismissNotification
-
resetScreen
public void resetScreen() -
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中Screen
-
onClosePopup
void onClosePopup() -
charTyped
public boolean charTyped(char pCodePoint, int pModifiers) -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) -
isOutsidePopup
private boolean isOutsidePopup(double pMouseX, double pMouseY) -
drawPopup
-
popupX0
int popupX0() -
popupY0
int popupY0() -
play
-
isSelfOwnedServer
-
isSelfOwnedNonExpiredServer
-
drawExpired
-
drawExpiring
void drawExpiring(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, int pDaysLeft) -
drawOpen
-
drawClose
-
renderNews
void renderNews(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, boolean pHasUnreadNews, int pX, int pY, boolean pIsHoveredOrFocused, boolean pActive) -
renderLocal
-
renderStage
-
newScreen
-