Class RealmsUploadScreen
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.RealmsUploadScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Buttonprivate static final intprivate static final intprivate static final intprivate static final intprivate longprivate Buttonprivate booleanprivate static final String[]private Component[]private final RealmsResetWorldScreenprivate static final org.slf4j.Loggerprivate final com.google.common.util.concurrent.RateLimiterprivate Longprivate Longprivate Stringprivate final LevelSummaryprivate booleanprivate final intprivate Componentprivate intprivate static final ReentrantLockprivate booleanprivate booleanprivate final UploadStatusprivate static final Componentprivate final longFields inherited from class net.minecraft.realms.RealmsScreenCOLOR_BRIGHT_YELLOW, COLOR_DARK_GRAY, COLOR_GREEN, COLOR_INFO, COLOR_LINK, COLOR_LINK_HOVER, COLOR_MEDIUM_GRAY, COLOR_RED_FADE, COLOR_YELLOW, EXPIRATION_NOTIFICATION_DAYS, SIZE_LIMIT, SKIN_FACE_SIZE, TITLE_HEIGHTFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionRealmsUploadScreen(long p_90083_, int p_90084_, RealmsResetWorldScreen p_90085_, LevelSummary p_90086_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidaddFileToTarGz(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_90108_, String p_90109_, String p_90110_, boolean p_90111_) private Componentprivate voiddrawDots(GuiGraphics p_283121_) private voiddrawProgressBar(GuiGraphics p_282575_) private voiddrawUploadSpeed(GuiGraphics p_281884_) private voiddrawUploadSpeed0(GuiGraphics p_282279_, long p_282827_) voidinit()booleankeyPressed(int p_90089_, int p_90090_, int p_90091_) private voidonBack()private voidonCancel()voidrender(GuiGraphics p_282140_, int p_90097_, int p_90098_, float p_90099_) private voidsetErrorMessage(Component... p_90113_) private FiletarGzipArchive(File p_90120_) voidtick()private voidupload()private voidprivate booleanMethods inherited from class net.minecraft.realms.RealmsScreenaddLabel, createLabelNarration, rowMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
UPLOAD_LOCK
- 
BAR_WIDTHprivate static final int BAR_WIDTH- See Also:
 
- 
BAR_TOPprivate static final int BAR_TOP- See Also:
 
- 
BAR_BOTTOMprivate static final int BAR_BOTTOM- See Also:
 
- 
BAR_BORDERprivate static final int BAR_BORDER- See Also:
 
- 
DOTS
- 
VERIFYING_TEXT
- 
lastScreen
- 
selectedLevel
- 
worldIdprivate final long worldId
- 
slotIdprivate final int slotId
- 
uploadStatus
- 
narrationRateLimiterprivate final com.google.common.util.concurrent.RateLimiter narrationRateLimiter
- 
errorMessage
- 
status
- 
progress
- 
cancelledprivate volatile boolean cancelled
- 
uploadFinishedprivate volatile boolean uploadFinished
- 
showDotsprivate volatile boolean showDots
- 
uploadStartedprivate volatile boolean uploadStarted
- 
backButton
- 
cancelButton
- 
tickCountprivate int tickCount
- 
previousWrittenBytes
- 
previousTimeSnapshot
- 
bytesPersSecondprivate long bytesPersSecond
 
- 
- 
Constructor Details- 
RealmsUploadScreenpublic RealmsUploadScreen(long p_90083_, int p_90084_, RealmsResetWorldScreen p_90085_, LevelSummary p_90086_) 
 
- 
- 
Method Details- 
initpublic void init()
- 
onBackprivate void onBack()
- 
onCancelprivate void onCancel()
- 
keyPressedpublic boolean keyPressed(int p_90089_, int p_90090_, int p_90091_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
drawDots
- 
drawProgressBar
- 
drawUploadSpeed
- 
drawUploadSpeed0
- 
tickpublic void tick()
- 
createProgressNarrationMessage
- 
uploadprivate void upload()
- 
setErrorMessage
- 
uploadCancelledprivate void uploadCancelled()
- 
verify
- 
tarGzipArchive- Throws:
- IOException
 
- 
addFileToTarGzprivate void addFileToTarGz(org.apache.commons.compress.archivers.tar.TarArchiveOutputStream p_90108_, String p_90109_, String p_90110_, boolean p_90111_) throws IOException - Throws:
- IOException
 
 
-