Class AbstractStretchingScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
com.refinedmods.refinedstorage.common.support.AbstractBaseScreen<T>
com.refinedmods.refinedstorage.common.support.stretching.AbstractStretchingScreen<T>
All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.screens.inventory.MenuAccess<T>
Direct Known Subclasses:
AbstractGridScreen, AbstractSecurityCardScreen, AutocrafterManagerScreen

public abstract class AbstractStretchingScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener> extends AbstractBaseScreen<T>
  • 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 static final int
     
    protected static final int
     

    Fields inherited from class AbstractBaseScreen

    TITLE_MAX_WIDTH, titleMarquee

    Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, titleLabelX, titleLabelY, topPos

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

    FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, TextMarquee title, int width, int height)
     
    protected
    AbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, int width, int height)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks)
     
    void
    extractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks)
     
    protected void
    extractDefaultBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics)
     
    protected abstract int
     
    protected abstract int
     
    protected final int
     
    protected int
     
    protected int
     
    protected final int
     
    protected void
     
    protected void
    init(int rows)
     
    protected final boolean
     
    protected int
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
     
    void
    mouseMoved(double mx, double my)
     
    boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
     
    boolean
    mouseScrolled(double x, double y, double scrollX, double scrollY)
     
    protected abstract void
    renderRows(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int topHeight, int rows, int mouseX, int mouseY)
     
    protected abstract void
    renderStretchingBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rows)
     
    protected final void
     
    protected void
    scrollbarChanged(int rows)
     
    protected final void
    updateScrollbar(int totalRows)
     

    Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, containerTick, extractCarriedItem, extractRenderState, extractSnapbackItem, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, keyPressed, mouseDragged, onClose, removed, slotClicked, tick

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

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

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class Object

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

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

    charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocused

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

    shouldTakeFocusAfterInteraction

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Field Details

  • Constructor Details

    • AbstractStretchingScreen

      protected AbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, TextMarquee title, int width, int height)
    • AbstractStretchingScreen

      protected AbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, int width, int height)
  • Method Details

    • init

      protected void init()
      Overrides:
      init in class AbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • init

      protected void init(int rows)
    • resize

      protected final void resize()
    • getVisibleRows

      protected final int getVisibleRows()
    • getScrollbarOffset

      protected final int getScrollbarOffset()
    • scrollbarChanged

      protected void scrollbarChanged(int rows)
    • extractBackground

      public void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      extractBackground in class AbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • extractDefaultBackground

      protected void extractDefaultBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics)
      Overrides:
      extractDefaultBackground in class AbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • renderRows

      protected abstract void renderRows(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int topHeight, int rows, int mouseX, int mouseY)
    • renderStretchingBackground

      protected abstract void renderStretchingBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rows)
    • extractContents

      public void extractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks)
      Overrides:
      extractContents in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class AbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • mouseMoved

      public void mouseMoved(double mx, double my)
    • mouseReleased

      public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseReleased in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • mouseScrolled

      public boolean mouseScrolled(double x, double y, double scrollX, double scrollY)
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseScrolled in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseScrolled in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
    • isInStretchedArea

      protected final boolean isInStretchedArea(int y)
    • updateScrollbar

      protected final void updateScrollbar(int totalRows)
    • getBottomHeight

      protected abstract int getBottomHeight()
    • getBottomV

      protected abstract int getBottomV()
    • getTopOffset

      protected int getTopOffset()
    • modifyVisibleRows

      protected int modifyVisibleRows(int rows)
    • getScrollPanePadding

      protected int getScrollPanePadding()