Class StonecutterScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<StonecutterMenu>
net.minecraft.client.gui.screens.inventory.StonecutterScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,MenuAccess<StonecutterMenu>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate booleanprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate booleanprivate floatprivate intFields 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, topPosFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionStonecutterScreen(StonecutterMenu p_99310_, Inventory p_99311_, Component p_99312_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected intprivate booleanbooleanmouseClicked(double p_99318_, double p_99319_, int p_99320_) booleanmouseDragged(double p_99322_, double p_99323_, int p_99324_, double p_99325_, double p_99326_) booleanmouseScrolled(double p_99314_, double p_99315_, double p_99316_) voidprotected voidprivate voidrenderButtons(PoseStack p_99342_, int p_99343_, int p_99344_, int p_99345_, int p_99346_, int p_99347_) private voidrenderRecipes(PoseStack p_275404_, int p_275254_, int p_275538_, int p_275224_) protected voidrenderTooltip(PoseStack p_99333_, int p_99334_, int p_99335_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, init, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderLabels, renderSlotHighlight, renderSlotHighlight, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BG_LOCATION
-
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- See Also:
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- See Also:
-
RECIPES_COLUMNS
private static final int RECIPES_COLUMNS- See Also:
-
RECIPES_ROWS
private static final int RECIPES_ROWS- See Also:
-
RECIPES_IMAGE_SIZE_WIDTH
private static final int RECIPES_IMAGE_SIZE_WIDTH- See Also:
-
RECIPES_IMAGE_SIZE_HEIGHT
private static final int RECIPES_IMAGE_SIZE_HEIGHT- See Also:
-
SCROLLER_FULL_HEIGHT
private static final int SCROLLER_FULL_HEIGHT- See Also:
-
RECIPES_X
private static final int RECIPES_X- See Also:
-
RECIPES_Y
private static final int RECIPES_Y- See Also:
-
scrollOffs
private float scrollOffs -
scrolling
private boolean scrolling -
startIndex
private int startIndex -
displayRecipes
private boolean displayRecipes
-
-
Constructor Details
-
StonecutterScreen
-
-
Method Details
-
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classAbstractContainerScreen<StonecutterMenu>
-
renderBg
- Specified by:
renderBgin classAbstractContainerScreen<StonecutterMenu>
-
renderTooltip
- Overrides:
renderTooltipin classAbstractContainerScreen<StonecutterMenu>
-
renderButtons
private void renderButtons(PoseStack p_99342_, int p_99343_, int p_99344_, int p_99345_, int p_99346_, int p_99347_) -
renderRecipes
-
mouseClicked
public boolean mouseClicked(double p_99318_, double p_99319_, int p_99320_) - Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractContainerScreen<StonecutterMenu>
-
mouseDragged
public boolean mouseDragged(double p_99322_, double p_99323_, int p_99324_, double p_99325_, double p_99326_) - Specified by:
mouseDraggedin interfaceContainerEventHandler- Specified by:
mouseDraggedin interfaceGuiEventListener- Overrides:
mouseDraggedin classAbstractContainerScreen<StonecutterMenu>
-
mouseScrolled
public boolean mouseScrolled(double p_99314_, double p_99315_, double p_99316_) -
isScrollBarActive
private boolean isScrollBarActive() -
getOffscreenRows
protected int getOffscreenRows() -
containerChanged
private void containerChanged()
-