@Environment(value=CLIENT) public class RealmsUploadScreen extends RealmsScreen
| Modifier and Type | Field and Description |
|---|---|
private int |
animTick |
private ButtonWidget |
backButton |
private long |
bytesPersSecond |
private ButtonWidget |
cancelButton |
private boolean |
cancelled |
private static String[] |
DOTS |
private Text[] |
field_20503 |
private Runnable |
field_22728 |
private RealmsResetWorldScreen |
lastScreen |
private static Logger |
LOGGER |
private RateLimiter |
narrationRateLimiter |
private Long |
previousTimeSnapshot |
private Long |
previousWrittenBytes |
private String |
progress |
private LevelSummary |
selectedLevel |
private boolean |
showDots |
private int |
slotId |
private Text |
status |
private boolean |
uploadFinished |
private static ReentrantLock |
uploadLock |
private boolean |
uploadStarted |
private UploadStatus |
uploadStatus |
private long |
worldId |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RealmsUploadScreen(long worldId,
int slotId,
RealmsResetWorldScreen lastScreen,
LevelSummary levelSummary,
Runnable runnable) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addFileToTarGz(TarArchiveOutputStream tOut,
String path,
String base,
boolean root) |
private void |
drawDots(MatrixStack matrixStack) |
private void |
drawProgressBar(MatrixStack matrixStack) |
private void |
drawUploadSpeed(MatrixStack matrixStack) |
private void |
drawUploadSpeed0(MatrixStack matrixStack,
long long2) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private void |
method_27460(Text[] text) |
private void |
onBack() |
private void |
onCancel() |
void |
removed() |
void |
render(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
private File |
tarGzipArchive(File pathToDirectoryFile) |
void |
tick() |
private void |
upload() |
private void |
uploadCancelled() |
private boolean |
verify(File archive) |
narrateLabels, rowaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Logger LOGGER
private static final ReentrantLock uploadLock
private static final String[] DOTS
private final RealmsResetWorldScreen lastScreen
private final LevelSummary selectedLevel
private final long worldId
private final int slotId
private final UploadStatus uploadStatus
private final RateLimiter narrationRateLimiter
private volatile Text[] field_20503
private volatile Text status
private volatile String progress
private volatile boolean cancelled
private volatile boolean uploadFinished
private volatile boolean showDots
private volatile boolean uploadStarted
private ButtonWidget backButton
private ButtonWidget cancelButton
private int animTick
private Long previousWrittenBytes
private Long previousTimeSnapshot
private long bytesPersSecond
private final Runnable field_22728
public RealmsUploadScreen(long worldId,
int slotId,
RealmsResetWorldScreen lastScreen,
LevelSummary levelSummary,
Runnable runnable)
private void onBack()
private void onCancel()
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class Screenpublic void render(MatrixStack matrixStack, int mouseY, int int2, float float2)
private void drawDots(MatrixStack matrixStack)
private void drawProgressBar(MatrixStack matrixStack)
private void drawUploadSpeed(MatrixStack matrixStack)
private void drawUploadSpeed0(MatrixStack matrixStack, long long2)
public void tick()
tick in class RealmsScreenprivate void upload()
private void method_27460(Text[] text)
private void uploadCancelled()
private boolean verify(File archive)
private File tarGzipArchive(File pathToDirectoryFile) throws IOException
IOExceptionprivate void addFileToTarGz(TarArchiveOutputStream tOut, String path, String base, boolean root) throws IOException
IOException