类 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
(专用程序包) static enum
(专用程序包) static class
(专用程序包) class
(专用程序包) class
(专用程序包) static interface
(专用程序包) class
(专用程序包) class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private RealmsMainScreen.LayoutState
private Button
private final CompletableFuture
<RealmsAvailability.Result> (专用程序包) List
<RealmsServer> private Button
private static final int
private static final int
private static final int
(专用程序包) static final ResourceLocation
private static final Component
private Button
private static final int
private DataFetcher.Subscription
private static final int
(专用程序包) static final ResourceLocation
(专用程序包) static final ResourceLocation
private static final int
static final ResourceLocation
private static final int
private static final Component
private static final Component
(专用程序包) static final ResourceLocation
private static final ResourceLocation
private final com.google.common.util.concurrent.RateLimiter
private static final int
(专用程序包) long
private final Screen
private HeaderAndFooterLayout
private static final Component
private Button
private static final Component
(专用程序包) 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
(专用程序包) static final ResourceLocation
private static final int
private static final int
private static final ResourceLocation
private String
private static final Component
private static final ResourceLocation
private static final Component
(专用程序包) final List
<RealmsNotification> (专用程序包) RealmsServerPlayerLists
(专用程序包) static final ResourceLocation
private static final Component
private static final Component
private Button
private static boolean
private Button
(专用程序包) static final Component
(专用程序包) static final Component
(专用程序包) static final Component
(专用程序包) static final Component
(专用程序包) static final Component
(专用程序包) static final Component
(专用程序包) RealmsServerList
private static final boolean
private static boolean
(专用程序包) static final Component
private static final Component
private static final Component
(专用程序包) static final Component
private boolean
(专用程序包) static final Component
从类继承的字段 net.minecraft.realms.RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, EXPIRATION_NOTIFICATION_DAYS, HARDCORE_HEART_SIZE, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHT
从类继承的字段 net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static <T> void
callRealmsClient
(RealmsMainScreen.RealmsCall<T> p_275561_, Consumer<T> p_275686_) private void
configureClicked
(RealmsServer p_86657_) private static void
confirmToPlay
(RealmsServer p_311893_, Screen p_310296_, Component p_309987_, Component p_309434_, Component p_311253_) private Layout
createFooter
(RealmsMainScreen.LayoutState p_299205_) private Layout
private HeaderAndFooterLayout
createLayout
(RealmsMainScreen.LayoutState p_299759_) private LinearLayout
private void
(专用程序包) void
dismissNotification
(UUID p_275349_) static Component
getGameModeComponent
(int p_364136_, boolean p_361479_) private RealmsServer
static Component
getVersionComponent
(String p_312049_, boolean p_312280_) static Component
getVersionComponent
(String p_311695_, int p_311083_) void
init()
private DataFetcher.Subscription
initDataFetcher
(RealmsDataFetcher p_238836_) private boolean
isSelfOwnedNonExpiredServer
(RealmsServer p_86689_) (专用程序包) static boolean
isSelfOwnedServer
(RealmsServer p_86684_) static boolean
private void
leaveClicked
(RealmsServer p_86670_) private void
leaveServer
(RealmsServer p_193495_) (专用程序包) void
markNotificationsAsSeen
(Collection<RealmsNotification> p_311351_) void
onClose()
private void
onRenew
(RealmsServer p_193500_) private void
private void
static void
play
(RealmsServer p_86516_, Screen p_86517_) static void
play
(RealmsServer p_312669_, Screen p_310591_, boolean p_309776_) private void
static void
static void
void
render
(GuiGraphics p_282736_, int p_283347_, int p_282480_, float p_283485_) private void
renderEnvironment
(GuiGraphics p_298843_, String p_299597_, int p_300122_) protected void
void
private boolean
shouldConfigureButtonBeActive
(RealmsServer p_86620_) private boolean
shouldLeaveButtonBeActive
(RealmsServer p_86645_) (专用程序包) boolean
shouldPlayButtonBeActive
(RealmsServer p_86563_) private boolean
shouldRenewButtonBeActive
(RealmsServer p_86595_) void
tick()
(专用程序包) void
private void
private void
updateLayout
(RealmsMainScreen.LayoutState p_297284_) private static void
upgradeRealmAndPlay
(RealmsServer p_343214_, Screen p_343698_) 从类继承的方法 net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, row
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
从类继承的方法 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
INFO_SPRITE
-
NEW_REALM_SPRITE
-
EXPIRED_SPRITE
-
EXPIRES_SOON_SPRITE
-
OPEN_SPRITE
-
CLOSED_SPRITE
-
INVITE_SPRITE
-
NEWS_SPRITE
-
HARDCORE_MODE_SPRITE
-
LOGGER
static final org.slf4j.Logger LOGGER -
LOGO_LOCATION
-
NO_REALMS_LOCATION
-
TITLE
-
LOADING_TEXT
-
SERVER_UNITIALIZED_TEXT
-
SUBSCRIPTION_EXPIRED_TEXT
-
SUBSCRIPTION_RENEW_TEXT
-
TRIAL_EXPIRED_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
-
UNITIALIZED_WORLD_NARRATION
-
NO_REALMS_TEXT
-
NO_PENDING_INVITES
-
PENDING_INVITES
-
INCOMPATIBLE_POPUP_TITLE
-
INCOMPATIBLE_RELEASE_TYPE_POPUP_MESSAGE
-
BUTTON_WIDTH
private static final int BUTTON_WIDTH- 另请参阅:
-
BUTTON_COLUMNS
private static final int BUTTON_COLUMNS- 另请参阅:
-
BUTTON_SPACING
private static final int BUTTON_SPACING- 另请参阅:
-
CONTENT_WIDTH
private static final int CONTENT_WIDTH- 另请参阅:
-
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- 另请参阅:
-
FOOTER_PADDING
private static final int FOOTER_PADDING- 另请参阅:
-
NEW_REALM_SPRITE_WIDTH
private static final int NEW_REALM_SPRITE_WIDTH- 另请参阅:
-
NEW_REALM_SPRITE_HEIGHT
private static final int NEW_REALM_SPRITE_HEIGHT- 另请参阅:
-
ENTRY_WIDTH
private static final int ENTRY_WIDTH- 另请参阅:
-
ITEM_HEIGHT
private static final int ITEM_HEIGHT- 另请参阅:
-
SNAPSHOT
private static final boolean SNAPSHOT -
snapshotToggle
private static boolean snapshotToggle -
availability
-
dataSubscription
-
handledSeenNotifications
-
regionsPinged
private static boolean regionsPinged -
inviteNarrationLimiter
private final com.google.common.util.concurrent.RateLimiter inviteNarrationLimiter -
lastScreen
-
playButton
-
backButton
-
renewButton
-
configureButton
-
leaveButton
-
realmSelectionList
RealmsMainScreen.RealmSelectionList realmSelectionList -
serverList
RealmsServerList serverList -
availableSnapshotServers
List<RealmsServer> availableSnapshotServers -
onlinePlayersPerRealm
RealmsServerPlayerLists onlinePlayersPerRealm -
trialsAvailable
private volatile boolean trialsAvailable -
newsLink
-
lastClickTime
long lastClickTime -
notifications
-
addRealmButton
-
pendingInvitesButton
-
newsButton
-
activeLayoutState
-
layout
-
-
构造器详细资料
-
RealmsMainScreen
-
-
方法详细资料
-
init
public void init() -
isSnapshot
public static boolean isSnapshot() -
repositionElements
protected void repositionElements()- 覆盖:
repositionElements
在类中Screen
-
onClose
public void onClose() -
updateLayout
private void updateLayout() -
updateLayout
-
createLayout
-
createHeader
-
createNoRealmsContent
-
updateButtonStates
void updateButtonStates() -
shouldPlayButtonBeActive
-
shouldRenewButtonBeActive
-
shouldConfigureButtonBeActive
-
shouldLeaveButtonBeActive
-
tick
public void tick() -
refreshPendingInvites
public static void refreshPendingInvites() -
refreshServerList
public static void refreshServerList() -
debugRefreshDataFetchers
private void debugRefreshDataFetchers() -
initDataFetcher
-
markNotificationsAsSeen
-
callRealmsClient
private static <T> void callRealmsClient(RealmsMainScreen.RealmsCall<T> p_275561_, Consumer<T> p_275686_) -
refreshListAndLayout
private void refreshListAndLayout() -
pingRegions
private void pingRegions() -
getOwnedNonExpiredRealmIds
-
onRenew
-
configureClicked
-
leaveClicked
-
getSelectedServer
-
leaveServer
-
dismissNotification
-
resetScreen
public void resetScreen() -
getNarrationMessage
- 覆盖:
getNarrationMessage
在类中Screen
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
openTrialAvailablePopup
private void openTrialAvailablePopup() -
play
-
play
-
confirmToPlay
private static void confirmToPlay(RealmsServer p_311893_, Screen p_310296_, Component p_309987_, Component p_309434_, Component p_311253_) -
upgradeRealmAndPlay
-
getVersionComponent
-
getVersionComponent
-
getGameModeComponent
-
isSelfOwnedServer
-
isSelfOwnedNonExpiredServer
-
renderEnvironment
-