Class StonecutterScreen
java.lang.Object
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
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private boolean
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final int
private static final int
private static final ResourceLocation
private static final int
private boolean
private float
private int
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
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionStonecutterScreen
(StonecutterMenu p_99310_, Inventory p_99311_, Component p_99312_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected int
private boolean
boolean
mouseClicked
(double p_99318_, double p_99319_, int p_99320_) boolean
mouseDragged
(double p_99322_, double p_99323_, int p_99324_, double p_99325_, double p_99326_) boolean
mouseScrolled
(double p_99314_, double p_99315_, double p_99316_, double p_295672_) void
render
(GuiGraphics p_281735_, int p_282517_, int p_282840_, float p_282389_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an eventprotected void
renderBg
(GuiGraphics p_283115_, float p_282453_, int p_282940_, int p_282328_) private void
renderButtons
(GuiGraphics p_282733_, int p_282136_, int p_282147_, int p_281987_, int p_281276_, int p_282688_) private void
renderRecipes
(GuiGraphics p_281999_, int p_282658_, int p_282563_, int p_283352_) protected void
renderTooltip
(GuiGraphics p_282396_, int p_283157_, int p_282258_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, init, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, 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, 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
-
Field Details
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
RECIPE_SELECTED_SPRITE
-
RECIPE_HIGHLIGHTED_SPRITE
-
RECIPE_SPRITE
-
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
Description copied from class:Screen
Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an event- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classAbstractContainerScreen<StonecutterMenu>
-
renderBg
- Specified by:
renderBg
in classAbstractContainerScreen<StonecutterMenu>
-
renderTooltip
- Overrides:
renderTooltip
in classAbstractContainerScreen<StonecutterMenu>
-
renderButtons
private void renderButtons(GuiGraphics p_282733_, int p_282136_, int p_282147_, int p_281987_, int p_281276_, int p_282688_) -
renderRecipes
-
mouseClicked
public boolean mouseClicked(double p_99318_, double p_99319_, int p_99320_) - Specified by:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractContainerScreen<StonecutterMenu>
-
mouseDragged
public boolean mouseDragged(double p_99322_, double p_99323_, int p_99324_, double p_99325_, double p_99326_) - Specified by:
mouseDragged
in interfaceContainerEventHandler
- Specified by:
mouseDragged
in interfaceGuiEventListener
- Overrides:
mouseDragged
in classAbstractContainerScreen<StonecutterMenu>
-
mouseScrolled
public boolean mouseScrolled(double p_99314_, double p_99315_, double p_99316_, double p_295672_) -
isScrollBarActive
private boolean isScrollBarActive() -
getOffscreenRows
protected int getOffscreenRows() -
containerChanged
private void containerChanged()
-