Class LoomScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<LoomMenu>
net.minecraft.client.gui.screens.inventory.LoomScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,MenuAccess<LoomMenu>
-
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 ItemStackprivate static final ResourceLocationprivate booleanprivate static final ResourceLocationprivate ItemStackprivate static final ResourceLocationprivate ModelPartprivate booleanprivate static final intprivate static final ResourceLocationprivate static final intprivate static final intprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final intprivate static final intprivate ItemStackprivate BannerPatternLayersprivate static final ResourceLocationprivate static final intprivate static final intprivate static final ResourceLocationprivate 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
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprotected booleanhasClickedOutside(double p_99093_, double p_99094_, int p_99095_, int p_99096_, int p_99097_) protected voidinit()booleanmouseClicked(double p_99083_, double p_99084_, int p_99085_) booleanmouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_) booleanmouseScrolled(double p_99079_, double p_99080_, double p_99081_, double p_295430_) voidrender(GuiGraphics p_283513_, int p_282700_, int p_282637_, float p_281433_) 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 voidrenderBg(GuiGraphics p_282870_, float p_281777_, int p_283331_, int p_283087_) private voidrenderPattern(GuiGraphics p_282452_, Holder<BannerPattern> p_281940_, int p_281872_, int p_282995_) private intMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods 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, 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
-
BANNER_SLOT_SPRITE
-
DYE_SLOT_SPRITE
-
PATTERN_SLOT_SPRITE
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
PATTERN_SELECTED_SPRITE
-
PATTERN_HIGHLIGHTED_SPRITE
-
PATTERN_SPRITE
-
ERROR_SPRITE
-
BG_LOCATION
-
PATTERN_COLUMNS
private static final int PATTERN_COLUMNS- See Also:
-
PATTERN_ROWS
private static final int PATTERN_ROWS- See Also:
-
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- See Also:
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- See Also:
-
PATTERN_IMAGE_SIZE
private static final int PATTERN_IMAGE_SIZE- See Also:
-
SCROLLER_FULL_HEIGHT
private static final int SCROLLER_FULL_HEIGHT- See Also:
-
PATTERNS_X
private static final int PATTERNS_X- See Also:
-
PATTERNS_Y
private static final int PATTERNS_Y- See Also:
-
flag
-
resultBannerPatterns
-
bannerStack
-
dyeStack
-
patternStack
-
displayPatterns
private boolean displayPatterns -
hasMaxPatterns
private boolean hasMaxPatterns -
scrollOffs
private float scrollOffs -
scrolling
private boolean scrolling -
startRow
private int startRow
-
-
Constructor Details
-
LoomScreen
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractContainerScreen<LoomMenu>
-
render
Description copied from class:ScreenNeo: 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:
renderin interfaceRenderable- Overrides:
renderin classAbstractContainerScreen<LoomMenu>
-
totalRowCount
private int totalRowCount() -
renderBg
- Specified by:
renderBgin classAbstractContainerScreen<LoomMenu>
-
renderPattern
private void renderPattern(GuiGraphics p_282452_, Holder<BannerPattern> p_281940_, int p_281872_, int p_282995_) -
mouseClicked
public boolean mouseClicked(double p_99083_, double p_99084_, int p_99085_) - Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractContainerScreen<LoomMenu>
-
mouseDragged
public boolean mouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_) - Specified by:
mouseDraggedin interfaceContainerEventHandler- Specified by:
mouseDraggedin interfaceGuiEventListener- Overrides:
mouseDraggedin classAbstractContainerScreen<LoomMenu>
-
mouseScrolled
public boolean mouseScrolled(double p_99079_, double p_99080_, double p_99081_, double p_295430_) -
hasClickedOutside
protected boolean hasClickedOutside(double p_99093_, double p_99094_, int p_99095_, int p_99096_, int p_99097_) - Overrides:
hasClickedOutsidein classAbstractContainerScreen<LoomMenu>
-
containerChanged
private void containerChanged()
-