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 SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier 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 List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> private 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.AbstractContainerScreenhoveredSlot, 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.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_) protected 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.AbstractContainerScreencheckHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlot, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screenadded, 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
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_COLUMNSprivate static final int PATTERN_COLUMNS- See Also:
 
- 
PATTERN_ROWSprivate static final int PATTERN_ROWS- See Also:
 
- 
SCROLLER_WIDTHprivate static final int SCROLLER_WIDTH- See Also:
 
- 
SCROLLER_HEIGHTprivate static final int SCROLLER_HEIGHT- See Also:
 
- 
PATTERN_IMAGE_SIZEprivate static final int PATTERN_IMAGE_SIZE- See Also:
 
- 
SCROLLER_FULL_HEIGHTprivate static final int SCROLLER_FULL_HEIGHT- See Also:
 
- 
PATTERNS_Xprivate static final int PATTERNS_X- See Also:
 
- 
PATTERNS_Yprivate static final int PATTERNS_Y- See Also:
 
- 
flag
- 
resultBannerPatterns@Nullable private List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> resultBannerPatterns
- 
bannerStack
- 
dyeStack
- 
patternStack
- 
displayPatternsprivate boolean displayPatterns
- 
hasMaxPatternsprivate boolean hasMaxPatterns
- 
scrollOffsprivate float scrollOffs
- 
scrollingprivate boolean scrolling
- 
startRowprivate int startRow
 
- 
- 
Constructor Details- 
LoomScreen
 
- 
- 
Method Details- 
initprotected void init()- Overrides:
- initin class- AbstractContainerScreen<LoomMenu>
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- AbstractContainerScreen<LoomMenu>
 
- 
totalRowCountprivate int totalRowCount()
- 
renderBg- Specified by:
- renderBgin class- AbstractContainerScreen<LoomMenu>
 
- 
renderPatternprivate void renderPattern(GuiGraphics p_282452_, Holder<BannerPattern> p_281940_, int p_281872_, int p_282995_) 
- 
mouseClickedpublic boolean mouseClicked(double p_99083_, double p_99084_, int p_99085_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerScreen<LoomMenu>
 
- 
mouseDraggedpublic boolean mouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_) - Specified by:
- mouseDraggedin interface- ContainerEventHandler
- Specified by:
- mouseDraggedin interface- GuiEventListener
- Overrides:
- mouseDraggedin class- AbstractContainerScreen<LoomMenu>
 
- 
mouseScrolledpublic boolean mouseScrolled(double p_99079_, double p_99080_, double p_99081_, double p_295430_) 
- 
hasClickedOutsideprotected boolean hasClickedOutside(double p_99093_, double p_99094_, int p_99095_, int p_99096_, int p_99097_) - Overrides:
- hasClickedOutsidein class- AbstractContainerScreen<LoomMenu>
 
- 
containerChangedprivate void containerChanged()
 
-