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
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intFields inherited from class AbstractBaseScreen
TITLE_MAX_WIDTH, titleMarqueeFields 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, topPosFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, TextMarquee title, int width, int height) protectedAbstractStretchingScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionvoidextractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks) voidextractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks) protected voidextractDefaultBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics) protected abstract intprotected abstract intprotected final intprotected intprotected intprotected final intprotected voidinit()protected voidinit(int rows) protected final booleanisInStretchedArea(int y) protected intmodifyVisibleRows(int rows) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) voidmouseMoved(double mx, double my) booleanmouseReleased(net.minecraft.client.input.MouseButtonEvent event) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) protected abstract voidrenderRows(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int topHeight, int rows, int mouseX, int mouseY) protected abstract voidrenderStretchingBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rows) protected final voidresize()protected voidscrollbarChanged(int rows) protected final voidupdateScrollbar(int totalRows) Methods inherited from class AbstractBaseScreen
addResourceSlotTooltips, addSideButton, canInteractWithResourceSlot, clearWidgets, createResourceAmountScreen, extractLabels, extractSlot, extractSlots, extractTooltip, getExclusionZones, getHoveredResource, getLeftPos, getResourceSlotTooltip, getResourceSlotTooltip, getSideButtonX, getSideButtonY, getTexture, getTopPos, renderPlayerInventoryTitle, renderResourceSlots, setDeferredTooltipMethods 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, tickMethods 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, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
ROW_SIZE
protected static final int ROW_SIZE- See Also:
-
TOP_HEIGHT
protected static final int TOP_HEIGHT- See Also:
-
-
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:
initin classAbstractBaseScreen<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:
extractBackgroundin classAbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
-
extractDefaultBackground
protected void extractDefaultBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics) - Overrides:
extractDefaultBackgroundin classAbstractBaseScreen<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:
extractContentsin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
-
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classAbstractBaseScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
-
mouseMoved
public void mouseMoved(double mx, double my) -
mouseReleased
public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseReleasedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractBaseContainerMenu & ScreenSizeListener>
-
mouseScrolled
public boolean mouseScrolled(double x, double y, double scrollX, double scrollY) - Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseScrolledin classnet.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()
-