Class UploadScreen

java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
de.mrjulsen.mcdragonlib.client.gui.DLScreen
de.mrjulsen.dragnsounds.client.UploadScreen
All Implemented Interfaces:
de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibContainer<de.mrjulsen.mcdragonlib.client.gui.DLScreen>, de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibWidget, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Widget

public class UploadScreen extends de.mrjulsen.mcdragonlib.client.gui.DLScreen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected de.mrjulsen.mcdragonlib.client.gui.widgets.DLButton
     
     
    protected final String
     
    protected final String
     
    protected de.mrjulsen.mcdragonlib.client.gui.widgets.DLProgressBar
     
    protected final long
     

    Fields inherited from class de.mrjulsen.mcdragonlib.client.gui.DLScreen

    menu, NO_BUTTON_CLICK_ACTION, NO_CYCLE_BUTTON_VALUE_CHANGE_ACTION, NO_EDIT_BOX_FOCUS_CHANGE_ACTION, NO_SLIDER_CHANGE_VALUE_ACTION, tooltips

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    font, height, itemRenderer, minecraft, passEvents, title, width

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS

    Fields inherited from interface de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibContainer

    DEFAULT_LAYER_INDEX

    Fields inherited from interface de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibWidget

    NO_CONTEXT_MENU_BUTTON
  • Constructor Summary

    Constructors
    Constructor
    Description
    UploadScreen(long uploadId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    boolean
    keyPressed(int keyCode, int scanCode, int modifiers)
     
    void
    renderMainLayer(de.mrjulsen.mcdragonlib.client.util.Graphics graphics, int mouseX, int mouseY, float partialTicks)
     
    void
    setBuffer(double d)
     
    void
     
    void
    setProgress(double d)
     
    boolean
     
    void
     

    Methods inherited from class de.mrjulsen.mcdragonlib.client.gui.DLScreen

    addButton, addCycleButton, addEditBox, addOnOffButton, addRenderableWidget, addSlider, addTooltip, addWidget, changeFocus, checkWidgetBounds, consumeScrolling, getAllowedLayer, getChildAt, getContextMenu, getHeight, getWidgetLayerIndex, getWidth, getX, getY, isActive, isMouseSelected, isVisible, mouseClicked, mouseScrolled, onDone, onFocusChangeEvent, removeTooltips, render, renderBackground, renderBackground, renderBackLayer, renderFrontLayer, renderScreenBackground, setActive, setAllowedLayer, setFocused, setHeight, setMenu, setMouseSelected, setScreen, setVisible, setWidgetLayerIndex, setWidth, setX, setY

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    addRenderableOnly, addRenderableWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removed, removeWidget, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging

    Methods inherited from class net.minecraft.client.gui.GuiComponent

    blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, setInitialFocus

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved

    Methods inherited from interface de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibContainer

    changeFocusImpl, checkWidgetBoundsOffset, childrenLayered, closeAllContextMenus, containerMouseScrolled, contextMenuMouseClickEvent, getChildAtImpl, getContextMenuChildAtImpl, getWidgetsReversed, mouseSelectEvent

    Methods inherited from interface de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibWidget

    contextMenuMouseClickHandler, getContextMenuOpenButton
  • Field Details

    • progressBar

      protected de.mrjulsen.mcdragonlib.client.gui.widgets.DLProgressBar progressBar
    • uploadId

      protected final long uploadId
    • cancelButton

      protected de.mrjulsen.mcdragonlib.client.gui.widgets.DLButton cancelButton
    • currentState

      protected ClientApi.UploadState currentState
    • keyConvert

      protected final String keyConvert
      See Also:
    • keyUpload

      protected final String keyUpload
      See Also:
  • Constructor Details

    • UploadScreen

      public UploadScreen(long uploadId)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class de.mrjulsen.mcdragonlib.client.gui.DLScreen
    • tick

      public void tick()
      Overrides:
      tick in class de.mrjulsen.mcdragonlib.client.gui.DLScreen
    • renderMainLayer

      public void renderMainLayer(de.mrjulsen.mcdragonlib.client.util.Graphics graphics, int mouseX, int mouseY, float partialTicks)
      Specified by:
      renderMainLayer in interface de.mrjulsen.mcdragonlib.client.gui.widgets.IDragonLibWidget
      Overrides:
      renderMainLayer in class de.mrjulsen.mcdragonlib.client.gui.DLScreen
    • setProgress

      public void setProgress(double d)
    • setBuffer

      public void setBuffer(double d)
    • setCurrentState

      public void setCurrentState(ClientApi.UploadState state)
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Overrides:
      shouldCloseOnEsc in class net.minecraft.client.gui.screens.Screen