@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 String |
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 String |
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() |
private void |
drawProgressBar() |
private void |
drawUploadSpeed() |
private void |
drawUploadSpeed0(long bytesPersSecond) |
void |
init() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
private void |
onBack() |
private void |
onCancel() |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
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, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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 String field_20503
private volatile String 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(int mouseX,
int mouseY,
float delta)
private void drawDots()
private void drawProgressBar()
private void drawUploadSpeed()
private void drawUploadSpeed0(long bytesPersSecond)
public void tick()
tick in class RealmsScreenprivate void upload()
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