Class RealmsBrokenWorldScreen
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.RealmsBrokenWorldScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate final Screenprivate intprivate static final org.slf4j.Loggerprivate final Component[]private @Nullable RealmsServerprivate final longprivate static final IdentifierFields 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
ConstructorsConstructorDescriptionRealmsBrokenWorldScreen(Screen lastScreen, long serverId, boolean isMinigame) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateErrorScreen(RealmsServiceException exception) voidprivate voiddownloadWorld(int slotId) voidextractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a) private voidextractSlotFrame(GuiGraphicsExtractor graphics, int x, int y, int xm, int ym, boolean active, String text, int i, long imageId, @Nullable String image, boolean empty) private voidfetchServerData(long realmId) private intgetFramePositionX(int i) voidinit()private booleanvoidonClose()voidtick()Methods inherited from class RealmsScreen
realmsLogo, rowMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, 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
-
SLOT_FRAME_SPRITE
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_BUTTON_WIDTH
private static final int DEFAULT_BUTTON_WIDTH- See Also:
-
lastScreen
-
serverData
-
serverId
private final long serverId -
message
-
leftX
private int leftX -
slotsThatHasBeenDownloaded
-
animTick
private int animTick
-
-
Constructor Details
-
RealmsBrokenWorldScreen
-
-
Method Details
-
init
-
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
addButtons
private void addButtons() -
tick
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
getFramePositionX
private int getFramePositionX(int i) -
createErrorScreen
-
fetchServerData
private void fetchServerData(long realmId) -
doSwitchOrReset
public void doSwitchOrReset() -
downloadWorld
private void downloadWorld(int slotId) -
onClose
-
isMinigame
private boolean isMinigame() -
extractSlotFrame
private void extractSlotFrame(GuiGraphicsExtractor graphics, int x, int y, int xm, int ym, boolean active, String text, int i, long imageId, @Nullable String image, boolean empty)
-