Class AbstractGridScreen<T extends AbstractGridContainerMenu>
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>
com.refinedmods.refinedstorage.common.grid.screen.AbstractGridScreen<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:
CraftingGridScreen, GridScreen, PatternGridScreen, PortableGridScreen
public abstract class AbstractGridScreen<T extends AbstractGridContainerMenu>
extends AbstractStretchingScreen<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 final intprotected static final intFields inherited from class AbstractStretchingScreen
ROW_SIZE, TOP_HEIGHTFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractGridScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, int bottomHeight, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(net.minecraft.client.input.CharacterEvent event) protected voidvoidextractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks) protected voidextractSlot(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.world.inventory.Slot slot, int mouseX, int mouseY) protected voidextractTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y) protected intprotected int@Nullable GridResourceprotected List<net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent> getResourceSlotTooltip(ResourceKey resource, ResourceSlot slot) protected voidinit(int rows) booleankeyPressed(net.minecraft.client.input.KeyEvent event) booleankeyReleased(net.minecraft.client.input.KeyEvent event) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent e, boolean doubleClick) protected voidmouseClickedInGrid(int clickedButton, GridResource resource) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) protected voidrenderRows(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int topHeight, int rows, int mouseX, int mouseY) static voidrenderSlotBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int slotX, int slotY, boolean large, int color) protected voidrenderStretchingBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rows) Methods inherited from class AbstractStretchingScreen
extractBackground, extractDefaultBackground, getScrollbarOffset, getScrollPanePadding, init, isInStretchedArea, mouseMoved, mouseReleased, resize, scrollbarChanged, updateScrollbarMethods inherited from class AbstractBaseScreen
addResourceSlotTooltips, addSideButton, canInteractWithResourceSlot, clearWidgets, createResourceAmountScreen, extractLabels, extractSlots, getExclusionZones, getHoveredResource, getLeftPos, getResourceSlotTooltip, getSideButtonX, getSideButtonY, getTexture, getTopPos, renderPlayerInventoryTitle, renderResourceSlots, setDeferredTooltipMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, extractCarriedItem, extractRenderState, extractSnapbackItem, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, 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
getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, 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
-
CLEAR_BUTTON_SIZE
protected static final int CLEAR_BUTTON_SIZE- See Also:
-
bottomHeight
protected final int bottomHeight
-
-
Constructor Details
-
AbstractGridScreen
protected AbstractGridScreen(T menu, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, int bottomHeight, int width, int height)
-
-
Method Details
-
init
protected void init(int rows) - Overrides:
initin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
containerTick
protected void containerTick()- Overrides:
containerTickin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractGridContainerMenu>
-
renderStretchingBackground
protected void renderStretchingBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int rows) - Specified by:
renderStretchingBackgroundin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
getBottomHeight
protected int getBottomHeight()- Specified by:
getBottomHeightin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
getBottomV
protected int getBottomV()- Specified by:
getBottomVin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
renderRows
protected void renderRows(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int topHeight, int rows, int mouseX, int mouseY) - Specified by:
renderRowsin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
extractSlot
protected void extractSlot(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.world.inventory.Slot slot, int mouseX, int mouseY) - Overrides:
extractSlotin classAbstractBaseScreen<T extends AbstractGridContainerMenu>
-
renderSlotBackground
public static void renderSlotBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int slotX, int slotY, boolean large, int color) -
extractTooltip
protected void extractTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y) - Overrides:
extractTooltipin classAbstractBaseScreen<T extends AbstractGridContainerMenu>
-
getCurrentGridResource
-
extractContents
public void extractContents(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTicks) - Overrides:
extractContentsin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent e, boolean doubleClick) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseClickedin classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
mouseClickedInGrid
-
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 classAbstractStretchingScreen<T extends AbstractGridContainerMenu>
-
charTyped
public boolean charTyped(net.minecraft.client.input.CharacterEvent event) -
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent event) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends AbstractGridContainerMenu>
-
keyReleased
public boolean keyReleased(net.minecraft.client.input.KeyEvent event)
-