Class AbstractAmountScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu, N extends Number>
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.amount.AbstractAmountScreen<T,N>
- 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:
AbstractSingleAmountScreen, AlternativesScreen, AutocraftingPreviewScreen, PriorityScreen, ResourceAmountScreen
public abstract class AbstractAmountScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu, N extends Number>
extends AbstractBaseScreen<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable net.minecraft.client.gui.components.EditBoxprotected @Nullable ActionButtonprotected @Nullable ActionButtonFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractAmountScreen(T containerMenu, @Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, AmountScreenConfiguration<N> configuration, AmountOperations<N> amountOperations, int width, int height) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancharTyped(net.minecraft.client.input.CharacterEvent event) final voidclose()protected abstract booleanprotected voidextractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY) protected @Nullable ActionIconprotected voidinit()booleankeyPressed(net.minecraft.client.input.KeyEvent event) booleanmouseScrolled(double x, double y, double scrollX, double scrollY) protected voidprotected voidreset()protected final booleantryClose(int key) protected final voidupdateAmount(N amount) Methods inherited from class AbstractBaseScreen
addResourceSlotTooltips, addSideButton, canInteractWithResourceSlot, clearWidgets, createResourceAmountScreen, extractBackground, extractDefaultBackground, extractSlot, extractSlots, extractTooltip, getExclusionZones, getHoveredResource, getLeftPos, getResourceSlotTooltip, getResourceSlotTooltip, getSideButtonX, getSideButtonY, getTexture, getTopPos, mouseClicked, renderPlayerInventoryTitle, renderResourceSlots, setDeferredTooltipMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, containerTick, extractCarriedItem, extractContents, extractRenderState, extractSnapbackItem, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, mouseDragged, mouseReleased, 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, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
confirmButton
-
cancelButton
-
amountField
protected @Nullable net.minecraft.client.gui.components.EditBox amountField
-
-
Constructor Details
-
AbstractAmountScreen
protected AbstractAmountScreen(T containerMenu, @Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title, AmountScreenConfiguration<N> configuration, AmountOperations<N> amountOperations, int width, int height)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractBaseScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
getConfirmButtonIcon
-
updateAmount
-
onAmountFieldChanged
protected void onAmountFieldChanged() -
confirm
-
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 net.minecraft.world.inventory.AbstractContainerMenu>
-
extractLabels
protected void extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY) - Overrides:
extractLabelsin classAbstractBaseScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
-
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 net.minecraft.world.inventory.AbstractContainerMenu>
-
tryClose
protected final boolean tryClose(int key) -
reset
protected void reset() -
close
public final void close() -
beforeClose
protected boolean beforeClose() -
getAndValidateAmount
-