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 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate final Screenprivate intprivate static final org.slf4j.Loggerprivate final Component[]private RealmsServerprivate final longprivate static final ResourceLocationFields inherited from class net.minecraft.realms.RealmsScreen
COLOR_DARK_GRAY, COLOR_GREEN, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, 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 net.minecraft.client.gui.screens.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 pLastScreen, long pServerId, boolean pIsMinigame) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreateErrorScreen(RealmsServiceException pException) voidprivate voiddownloadWorld(int pSlotIndex) private voiddrawSlotFrame(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, boolean pIsActiveNonMinigame, String pText, int pSlotIndex, long pTemplateId, String pTemplateImage, boolean pHasTemplateImage) private voidfetchServerData(long pServerId) private intgetFramePositionX(int pIndex) voidinit()private booleanvoidonClose()voidrender(GuiGraphics p_282934_, int p_88317_, int p_88318_, float p_88319_) Renders the graphical user interface (GUI) element.voidtick()Methods inherited from class net.minecraft.realms.RealmsScreen
addLabel, createLabelNarration, realmsLogo, rowMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.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
public void init() -
getNarrationMessage
- Overrides:
getNarrationMessagein classScreen
-
addButtons
private void addButtons() -
tick
public void tick() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_282934_- the GuiGraphics object used for rendering.p_88317_- the x-coordinate of the mouse cursor.p_88318_- the y-coordinate of the mouse cursor.p_88319_- the partial tick time.
-
getFramePositionX
private int getFramePositionX(int pIndex) -
createErrorScreen
-
fetchServerData
private void fetchServerData(long pServerId) -
doSwitchOrReset
public void doSwitchOrReset() -
downloadWorld
private void downloadWorld(int pSlotIndex) -
onClose
public void onClose() -
isMinigame
private boolean isMinigame() -
drawSlotFrame
private void drawSlotFrame(GuiGraphics pGuiGraphics, int pX, int pY, int pMouseX, int pMouseY, boolean pIsActiveNonMinigame, String pText, int pSlotIndex, long pTemplateId, @Nullable String pTemplateImage, boolean pHasTemplateImage)
-