Class RealmsUploadScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.realms.gui.screen.RealmsScreen
net.minecraft.client.realms.gui.screen.RealmsUploadScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class RealmsUploadScreen extends RealmsScreen
- Mappings:
Namespace Name official dnxintermediary net/minecraft/class_4427named net/minecraft/client/realms/gui/screen/RealmsUploadScreen
-
Field Summary
Fields Modifier and Type Field Description private intanimTickprivate ButtonWidgetbackButtonprivate longbytesPersSecondprivate ButtonWidgetcancelButtonprivate booleancancelledprivate static String[]DOTSprivate Text[]field_20503private Runnablefield_22728private static LoggerLOGGERprivate RateLimiternarrationRateLimiterprivate RealmsResetWorldScreenparentprivate LongpreviousTimeSnapshotprivate LongpreviousWrittenBytesprivate Stringprogressprivate LevelSummaryselectedLevelprivate booleanshowDotsprivate intslotIdprivate Textstatusprivate static ReentrantLockUPLOAD_LOCKprivate booleanuploadFinishedprivate booleanuploadStartedprivate UploadStatusuploadStatusprivate static TextVERIFYING_TEXTprivate longworldIdFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description RealmsUploadScreen(long worldId, int slotId, RealmsResetWorldScreen parent, LevelSummary levelSummary, Runnable runnable) -
Method Summary
Modifier and Type Method Description private voidaddFileToTarGz(TarArchiveOutputStream tOut, String path, String base, boolean root)private voiddrawDots(MatrixStack matrices)private voiddrawProgressBar(MatrixStack matrices)private voiddrawUploadSpeed(MatrixStack matrices)private voiddrawUploadSpeed0(MatrixStack matrices, long long2)voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.private voidmethod_27460(Text[] text)private voidonBack()private voidonCancel()voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private FiletarGzipArchive(File pathToDirectoryFile)voidtick()private voidupload()private voiduploadCancelled()private booleanverify(File archive)Methods inherited from class net.minecraft.client.realms.gui.screen.RealmsScreen
narrateLabels, rowMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdnx;a:Lorg/apache/logging/log4j/Logger;intermediary field_20174Lnet/minecraft/class_4427;field_20174:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
UPLOAD_LOCK
- Mappings:
Namespace Name Mixin selector official bLdnx;b:Ljava/util/concurrent/locks/ReentrantLock;intermediary field_20196Lnet/minecraft/class_4427;field_20196:Ljava/util/concurrent/locks/ReentrantLock;named UPLOAD_LOCKLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;UPLOAD_LOCK:Ljava/util/concurrent/locks/ReentrantLock;
-
DOTS
- Mappings:
Namespace Name Mixin selector official cLdnx;c:[Ljava/lang/String;intermediary field_20191Lnet/minecraft/class_4427;field_20191:[Ljava/lang/String;named DOTSLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;DOTS:[Ljava/lang/String;
-
VERIFYING_TEXT
- Mappings:
Namespace Name Mixin selector official pLdnx;p:Loi;intermediary field_26526Lnet/minecraft/class_4427;field_26526:Lnet/minecraft/class_2561;named VERIFYING_TEXTLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;VERIFYING_TEXT:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official qLdnx;q:Ldnq;intermediary field_20175Lnet/minecraft/class_4427;field_20175:Lnet/minecraft/class_4410;named parentLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;parent:Lnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;
-
selectedLevel
- Mappings:
Namespace Name Mixin selector official rLdnx;r:Lddb;intermediary field_20176Lnet/minecraft/class_4427;field_20176:Lnet/minecraft/class_34;named selectedLevelLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;selectedLevel:Lnet/minecraft/world/level/storage/LevelSummary;
-
worldId
private final long worldId- Mappings:
Namespace Name Mixin selector official sLdnx;s:Jintermediary field_20177Lnet/minecraft/class_4427;field_20177:Jnamed worldIdLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;worldId:J
-
slotId
private final int slotId- Mappings:
Namespace Name Mixin selector official tLdnx;t:Iintermediary field_20178Lnet/minecraft/class_4427;field_20178:Inamed slotIdLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;slotId:I
-
uploadStatus
- Mappings:
Namespace Name Mixin selector official uLdnx;u:Ldlq;intermediary field_20179Lnet/minecraft/class_4427;field_20179:Lnet/minecraft/class_4351;named uploadStatusLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStatus:Lnet/minecraft/client/realms/UploadStatus;
-
narrationRateLimiter
- Mappings:
Namespace Name Mixin selector official vLdnx;v:Lcom/google/common/util/concurrent/RateLimiter;intermediary field_20180Lnet/minecraft/class_4427;field_20180:Lcom/google/common/util/concurrent/RateLimiter;named narrationRateLimiterLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;narrationRateLimiter:Lcom/google/common/util/concurrent/RateLimiter;
-
field_20503
- Mappings:
Namespace Name Mixin selector official wLdnx;w:[Loi;intermediary field_20503Lnet/minecraft/class_4427;field_20503:[Lnet/minecraft/class_2561;named field_20503Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_20503:[Lnet/minecraft/text/Text;
-
status
- Mappings:
Namespace Name Mixin selector official xLdnx;x:Loi;intermediary field_20182Lnet/minecraft/class_4427;field_20182:Lnet/minecraft/class_2561;named statusLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;status:Lnet/minecraft/text/Text;
-
progress
- Mappings:
Namespace Name Mixin selector official yLdnx;y:Ljava/lang/String;intermediary field_20183Lnet/minecraft/class_4427;field_20183:Ljava/lang/String;named progressLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;progress:Ljava/lang/String;
-
cancelled
private volatile boolean cancelled- Mappings:
Namespace Name Mixin selector official zLdnx;z:Zintermediary field_20184Lnet/minecraft/class_4427;field_20184:Znamed cancelledLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelled:Z
-
uploadFinished
private volatile boolean uploadFinished- Mappings:
Namespace Name Mixin selector official ALdnx;A:Zintermediary field_20185Lnet/minecraft/class_4427;field_20185:Znamed uploadFinishedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadFinished:Z
-
showDots
private volatile boolean showDots- Mappings:
Namespace Name Mixin selector official BLdnx;B:Zintermediary field_20186Lnet/minecraft/class_4427;field_20186:Znamed showDotsLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;showDots:Z
-
uploadStarted
private volatile boolean uploadStarted- Mappings:
Namespace Name Mixin selector official CLdnx;C:Zintermediary field_20187Lnet/minecraft/class_4427;field_20187:Znamed uploadStartedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadStarted:Z
-
backButton
- Mappings:
Namespace Name Mixin selector official DLdnx;D:Ldra;intermediary field_20188Lnet/minecraft/class_4427;field_20188:Lnet/minecraft/class_4185;named backButtonLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;backButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
cancelButton
- Mappings:
Namespace Name Mixin selector official ELdnx;E:Ldra;intermediary field_20189Lnet/minecraft/class_4427;field_20189:Lnet/minecraft/class_4185;named cancelButtonLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;cancelButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
animTick
private int animTick- Mappings:
Namespace Name Mixin selector official FLdnx;F:Iintermediary field_20190Lnet/minecraft/class_4427;field_20190:Inamed animTickLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;animTick:I
-
previousWrittenBytes
- Mappings:
Namespace Name Mixin selector official GLdnx;G:Ljava/lang/Long;intermediary field_20193Lnet/minecraft/class_4427;field_20193:Ljava/lang/Long;named previousWrittenBytesLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;previousWrittenBytes:Ljava/lang/Long;
-
previousTimeSnapshot
- Mappings:
Namespace Name Mixin selector official HLdnx;H:Ljava/lang/Long;intermediary field_20194Lnet/minecraft/class_4427;field_20194:Ljava/lang/Long;named previousTimeSnapshotLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;previousTimeSnapshot:Ljava/lang/Long;
-
bytesPersSecond
private long bytesPersSecond- Mappings:
Namespace Name Mixin selector official ILdnx;I:Jintermediary field_20195Lnet/minecraft/class_4427;field_20195:Jnamed bytesPersSecondLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;bytesPersSecond:J
-
field_22728
- Mappings:
Namespace Name Mixin selector official JLdnx;J:Ljava/lang/Runnable;intermediary field_22728Lnet/minecraft/class_4427;field_22728:Ljava/lang/Runnable;named field_22728Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;field_22728:Ljava/lang/Runnable;
-
-
Constructor Details
-
RealmsUploadScreen
public RealmsUploadScreen(long worldId, int slotId, RealmsResetWorldScreen parent, LevelSummary levelSummary, Runnable runnable)- Mappings:
Namespace Name Mixin selector official <init>Ldnx;<init>(JILdnq;Lddb;Ljava/lang/Runnable;)Vintermediary <init>Lnet/minecraft/class_4427;<init>(JILnet/minecraft/class_4410;Lnet/minecraft/class_34;Ljava/lang/Runnable;)Vnamed <init>Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;<init>(JILnet/minecraft/client/realms/gui/screen/RealmsResetWorldScreen;Lnet/minecraft/world/level/storage/LevelSummary;Ljava/lang/Runnable;)V
-
-
Method Details
-
init
public void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
removed
public void removed() -
onBack
private void onBack()- Mappings:
Namespace Name Mixin selector official hLdnx;h()Vintermediary method_21525Lnet/minecraft/class_4427;method_21525()Vnamed onBackLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onBack()V
-
onCancel
private void onCancel()- Mappings:
Namespace Name Mixin selector official iLdnx;i()Vintermediary method_21528Lnet/minecraft/class_4427;method_21528()Vnamed onCancelLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;onCancel()V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdrz;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLdrw;a(Ldkx;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawDots
- Mappings:
Namespace Name Mixin selector official bLdnx;b(Ldkx;)Vintermediary method_21530Lnet/minecraft/class_4427;method_21530(Lnet/minecraft/class_4587;)Vnamed drawDotsLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawDots(Lnet/minecraft/client/util/math/MatrixStack;)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector official cLdnx;c(Ldkx;)Vintermediary method_21532Lnet/minecraft/class_4427;method_21532(Lnet/minecraft/class_4587;)Vnamed drawProgressBarLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawProgressBar(Lnet/minecraft/client/util/math/MatrixStack;)V
-
drawUploadSpeed
- Mappings:
Namespace Name Mixin selector official dLdnx;d(Ldkx;)Vintermediary method_21534Lnet/minecraft/class_4427;method_21534(Lnet/minecraft/class_4587;)Vnamed drawUploadSpeedLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed(Lnet/minecraft/client/util/math/MatrixStack;)V
-
drawUploadSpeed0
- Mappings:
Namespace Name Mixin selector official aLdnx;a(Ldkx;J)Vintermediary method_21526Lnet/minecraft/class_4427;method_21526(Lnet/minecraft/class_4587;J)Vnamed drawUploadSpeed0Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;drawUploadSpeed0(Lnet/minecraft/client/util/math/MatrixStack;J)V
-
tick
public void tick()- Specified by:
tickin interfaceTickableElement- Overrides:
tickin classRealmsScreen- Mappings:
Namespace Name Mixin selector official dLdrt;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
upload
private void upload()- Mappings:
Namespace Name Mixin selector official kLdnx;k()Vintermediary method_21536Lnet/minecraft/class_4427;method_21536()Vnamed uploadLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;upload()V
-
method_27460
- Mappings:
Namespace Name Mixin selector official aLdnx;a([Loi;)Vintermediary method_27460Lnet/minecraft/class_4427;method_27460([Lnet/minecraft/class_2561;)Vnamed method_27460Lnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;method_27460([Lnet/minecraft/text/Text;)V
-
uploadCancelled
private void uploadCancelled()- Mappings:
Namespace Name Mixin selector official lLdnx;l()Vintermediary method_21538Lnet/minecraft/class_4427;method_21538()Vnamed uploadCancelledLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;uploadCancelled()V
-
verify
- Mappings:
Namespace Name Mixin selector official aLdnx;a(Ljava/io/File;)Zintermediary method_21515Lnet/minecraft/class_4427;method_21515(Ljava/io/File;)Znamed verifyLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;verify(Ljava/io/File;)Z
-
tarGzipArchive
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLdnx;b(Ljava/io/File;)Ljava/io/File;intermediary method_21524Lnet/minecraft/class_4427;method_21524(Ljava/io/File;)Ljava/io/File;named tarGzipArchiveLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;tarGzipArchive(Ljava/io/File;)Ljava/io/File;
-
addFileToTarGz
private void addFileToTarGz(TarArchiveOutputStream tOut, String path, String base, boolean root) throws IOException- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdnx;a(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)Vintermediary method_21516Lnet/minecraft/class_4427;method_21516(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)Vnamed addFileToTarGzLnet/minecraft/client/realms/gui/screen/RealmsUploadScreen;addFileToTarGz(Lorg/apache/commons/compress/archivers/tar/TarArchiveOutputStream;Ljava/lang/String;Ljava/lang/String;Z)V
-