Class FluidAmountScreen
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.screen.BaseScreen<T>
com.refinedmods.refinedstorage.screen.AmountSpecifyingScreen<FluidAmountContainerMenu>
com.refinedmods.refinedstorage.screen.FluidAmountScreen
- 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<FluidAmountContainerMenu>
-
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 inherited from class com.refinedmods.refinedstorage.screen.AmountSpecifyingScreen
amountField, cancelButton, okButton
Fields inherited from class com.refinedmods.refinedstorage.screen.BaseScreen
ICONS_TEXTURE, inventory
Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
Fields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionFluidAmountScreen
(BaseScreen parent, net.minecraft.world.entity.player.Player player, int containerSlot, net.neoforged.neoforge.fluids.FluidStack stack, int maxAmount, UnaryOperator<net.minecraft.client.gui.screens.Screen> alternativesScreenFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected int
protected int[]
protected int
protected net.minecraft.network.chat.Component
protected int
protected net.minecraft.resources.ResourceLocation
protected void
onOkButtonPressed
(boolean shiftDown) void
onPostInit
(int x, int y) Methods inherited from class com.refinedmods.refinedstorage.screen.AmountSpecifyingScreen
close, getAmountPos, getParent, keyPressed, mouseScrolled, renderBackground, renderForeground, tick
Methods inherited from class com.refinedmods.refinedstorage.screen.BaseScreen
addButton, addCheckBox, addSideButton, containerTick, executeLater, executeLater, getSideButtons, init, isKeyDown, onPreInit, render, renderBg, renderItem, renderItem, renderLabels, renderQuantity, renderString, renderString, renderTooltip, renderTooltip, renderTooltip, runActions, slotClicked
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, onClose, removed, renderBackground, renderSlot, renderSlotHighlight, renderSlotHighlight, renderTooltip, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
FluidAmountScreen
public FluidAmountScreen(BaseScreen parent, net.minecraft.world.entity.player.Player player, int containerSlot, net.neoforged.neoforge.fluids.FluidStack stack, int maxAmount, @Nullable UnaryOperator<net.minecraft.client.gui.screens.Screen> alternativesScreenFactory)
-
-
Method Details
-
getOkCancelButtonWidth
protected int getOkCancelButtonWidth()- Overrides:
getOkCancelButtonWidth
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
onPostInit
public void onPostInit(int x, int y) - Overrides:
onPostInit
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getOkCancelPos
- Overrides:
getOkCancelPos
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getDefaultAmount
protected int getDefaultAmount()- Specified by:
getDefaultAmount
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
canAmountGoNegative
protected boolean canAmountGoNegative()- Specified by:
canAmountGoNegative
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getMaxAmount
protected int getMaxAmount()- Specified by:
getMaxAmount
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getOkButtonText
protected net.minecraft.network.chat.Component getOkButtonText()- Specified by:
getOkButtonText
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getTexture
protected net.minecraft.resources.ResourceLocation getTexture()- Overrides:
getTexture
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
getIncrements
protected int[] getIncrements()- Specified by:
getIncrements
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-
onOkButtonPressed
protected void onOkButtonPressed(boolean shiftDown) - Overrides:
onOkButtonPressed
in classAmountSpecifyingScreen<FluidAmountContainerMenu>
-