Class LoomScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.HandledScreen<LoomScreenHandler>
net.minecraft.client.gui.screen.ingame.LoomScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement,ScreenHandlerProvider<LoomScreenHandler>
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/ingame/LoomScreenintermediary net/minecraft/class_494official gow
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ItemStackprivate static final Identifierprivate BannerFlagBlockModelprivate @Nullable BannerPatternsComponentprivate booleanprivate ItemStackprivate static final Identifierprivate static final Identifierprivate static final floatprivate static final floatprivate static final floatprivate booleanprivate ItemStackprivate static final intprivate static final Identifierprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final intprivate static final intprivate static final intprivate booleanprivate static final Identifierprivate static final Identifierprivate floatprivate static final Identifierprivate intFields inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragging, cursorDragSlots, field_52802, field_52803, focusedSlot, handler, playerInventoryTitle, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, yFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
Constructor Summary
ConstructorsConstructorDescriptionLoomScreen(LoomScreenHandler screenHandler, PlayerInventory inventory, Text title) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackground(DrawContext context, float deltaTicks, int mouseX, int mouseY) private voiddrawBanner(DrawContext context, int x, int y, Sprite sprite) private intgetRows()protected voidinit()Called when a screen should be initialized.protected booleanisClickOutsideBounds(double mouseX, double mouseY, int left, int top) booleanmouseClicked(Click click, boolean doubled) Callback for when a mouse button down event has been captured.booleanmouseDragged(Click click, double offsetX, double offsetY) Callback for when a mouse button drag event has been captured.booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.private voidvoidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) Methods inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
addTooltipSubmenuHandler, close, deferSubtitles, drawForeground, drawMouseoverTooltip, drawSlot, drawSlots, endTouchDrag, getScreenHandler, getTooltipFromItem, handledScreenTick, handleHotbarKeyPressed, isPointWithinBounds, keyPressed, mouseReleased, onMouseClick, onMouseClick, onSlotChangedState, removed, renderBackground, renderCursorStack, renderLetGoTouchStack, renderMain, shouldPause, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keepOpenThroughPortal, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, showsStatusEffects, switchFocus, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
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.Element
getBorder, isClickable, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, setFocused
-
Field Details
-
BANNER_SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector named BANNER_SLOT_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;BANNER_SLOT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45481Lnet/minecraft/class_494;field_45481:Lnet/minecraft/class_2960;official DLgow;D:Lamj;
-
DYE_SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector named DYE_SLOT_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;DYE_SLOT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45482Lnet/minecraft/class_494;field_45482:Lnet/minecraft/class_2960;official ELgow;E:Lamj;
-
PATTERN_SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector named PATTERN_SLOT_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_SLOT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45483Lnet/minecraft/class_494;field_45483:Lnet/minecraft/class_2960;official FLgow;F:Lamj;
-
SCROLLER_TEXTURE
- Mappings:
Namespace Name Mixin selector named SCROLLER_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;SCROLLER_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45476Lnet/minecraft/class_494;field_45476:Lnet/minecraft/class_2960;official GLgow;G:Lamj;
-
SCROLLER_DISABLED_TEXTURE
- Mappings:
Namespace Name Mixin selector named SCROLLER_DISABLED_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;SCROLLER_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45477Lnet/minecraft/class_494;field_45477:Lnet/minecraft/class_2960;official HLgow;H:Lamj;
-
PATTERN_SELECTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named PATTERN_SELECTED_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_SELECTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45478Lnet/minecraft/class_494;field_45478:Lnet/minecraft/class_2960;official ILgow;I:Lamj;
-
PATTERN_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named PATTERN_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45479Lnet/minecraft/class_494;field_45479:Lnet/minecraft/class_2960;official JLgow;J:Lamj;
-
PATTERN_TEXTURE
- Mappings:
Namespace Name Mixin selector named PATTERN_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45480Lnet/minecraft/class_494;field_45480:Lnet/minecraft/class_2960;official KLgow;K:Lamj;
-
ERROR_TEXTURE
- Mappings:
Namespace Name Mixin selector named ERROR_TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;ERROR_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_46186Lnet/minecraft/class_494;field_46186:Lnet/minecraft/class_2960;official LLgow;L:Lamj;
-
TEXTURE
- Mappings:
Namespace Name Mixin selector named TEXTURELnet/minecraft/client/gui/screen/ingame/LoomScreen;TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_2966Lnet/minecraft/class_494;field_2966:Lnet/minecraft/class_2960;official MLgow;M:Lamj;
-
PATTERN_LIST_COLUMNS
private static final int PATTERN_LIST_COLUMNS- See Also:
- Mappings:
Namespace Name Mixin selector named PATTERN_LIST_COLUMNSLnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_LIST_COLUMNS:Iintermediary field_32346Lnet/minecraft/class_494;field_32346:Iofficial NLgow;N:I
-
PATTERN_LIST_ROWS
private static final int PATTERN_LIST_ROWS- See Also:
- Mappings:
Namespace Name Mixin selector named PATTERN_LIST_ROWSLnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_LIST_ROWS:Iintermediary field_32347Lnet/minecraft/class_494;field_32347:Iofficial OLgow;O:I
-
SCROLLBAR_WIDTH
private static final int SCROLLBAR_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named SCROLLBAR_WIDTHLnet/minecraft/client/gui/screen/ingame/LoomScreen;SCROLLBAR_WIDTH:Iintermediary field_32348Lnet/minecraft/class_494;field_32348:Iofficial PLgow;P:I
-
SCROLLBAR_HEIGHT
private static final int SCROLLBAR_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named SCROLLBAR_HEIGHTLnet/minecraft/client/gui/screen/ingame/LoomScreen;SCROLLBAR_HEIGHT:Iintermediary field_32349Lnet/minecraft/class_494;field_32349:Iofficial QLgow;Q:I
-
PATTERN_ENTRY_SIZE
private static final int PATTERN_ENTRY_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named PATTERN_ENTRY_SIZELnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_ENTRY_SIZE:Iintermediary field_32350Lnet/minecraft/class_494;field_32350:Iofficial RLgow;R:I
-
SCROLLBAR_AREA_HEIGHT
private static final int SCROLLBAR_AREA_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named SCROLLBAR_AREA_HEIGHTLnet/minecraft/client/gui/screen/ingame/LoomScreen;SCROLLBAR_AREA_HEIGHT:Iintermediary field_32351Lnet/minecraft/class_494;field_32351:Iofficial SLgow;S:I
-
PATTERN_LIST_OFFSET_X
private static final int PATTERN_LIST_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named PATTERN_LIST_OFFSET_XLnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_LIST_OFFSET_X:Iintermediary field_32352Lnet/minecraft/class_494;field_32352:Iofficial TLgow;T:I
-
PATTERN_LIST_OFFSET_Y
private static final int PATTERN_LIST_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named PATTERN_LIST_OFFSET_YLnet/minecraft/client/gui/screen/ingame/LoomScreen;PATTERN_LIST_OFFSET_Y:Iintermediary field_32353Lnet/minecraft/class_494;field_32353:Iofficial ULgow;U:I
-
field_59943
private static final float field_59943- See Also:
- Mappings:
Namespace Name Mixin selector named field_59943Lnet/minecraft/client/gui/screen/ingame/LoomScreen;field_59943:Fintermediary field_59943Lnet/minecraft/class_494;field_59943:Fofficial VLgow;V:F
-
field_59944
private static final float field_59944- See Also:
- Mappings:
Namespace Name Mixin selector named field_59944Lnet/minecraft/client/gui/screen/ingame/LoomScreen;field_59944:Fintermediary field_59944Lnet/minecraft/class_494;field_59944:Fofficial WLgow;W:F
-
field_59945
private static final float field_59945- See Also:
- Mappings:
Namespace Name Mixin selector named field_59945Lnet/minecraft/client/gui/screen/ingame/LoomScreen;field_59945:Fintermediary field_59945Lnet/minecraft/class_494;field_59945:Fofficial XLgow;X:F
-
bannerField
- Mappings:
Namespace Name Mixin selector named bannerFieldLnet/minecraft/client/gui/screen/ingame/LoomScreen;bannerField:Lnet/minecraft/client/render/block/entity/model/BannerFlagBlockModel;intermediary field_21694Lnet/minecraft/class_494;field_21694:Lnet/minecraft/class_10377;official YLgow;Y:Lguc;
-
bannerPatterns
- Mappings:
Namespace Name Mixin selector named bannerPatternsLnet/minecraft/client/gui/screen/ingame/LoomScreen;bannerPatterns:Lnet/minecraft/component/type/BannerPatternsComponent;intermediary field_21841Lnet/minecraft/class_494;field_21841:Lnet/minecraft/class_9307;official ZLgow;Z:Lefw;
-
banner
- Mappings:
Namespace Name Mixin selector named bannerLnet/minecraft/client/gui/screen/ingame/LoomScreen;banner:Lnet/minecraft/item/ItemStack;intermediary field_2955Lnet/minecraft/class_494;field_2955:Lnet/minecraft/class_1799;official aaLgow;aa:Ldhp;
-
dye
- Mappings:
Namespace Name Mixin selector named dyeLnet/minecraft/client/gui/screen/ingame/LoomScreen;dye:Lnet/minecraft/item/ItemStack;intermediary field_2954Lnet/minecraft/class_494;field_2954:Lnet/minecraft/class_1799;official abLgow;ab:Ldhp;
-
pattern
- Mappings:
Namespace Name Mixin selector named patternLnet/minecraft/client/gui/screen/ingame/LoomScreen;pattern:Lnet/minecraft/item/ItemStack;intermediary field_2967Lnet/minecraft/class_494;field_2967:Lnet/minecraft/class_1799;official acLgow;ac:Ldhp;
-
canApplyDyePattern
private boolean canApplyDyePattern- Mappings:
Namespace Name Mixin selector named canApplyDyePatternLnet/minecraft/client/gui/screen/ingame/LoomScreen;canApplyDyePattern:Zintermediary field_2965Lnet/minecraft/class_494;field_2965:Zofficial adLgow;ad:Z
-
hasTooManyPatterns
private boolean hasTooManyPatterns- Mappings:
Namespace Name Mixin selector named hasTooManyPatternsLnet/minecraft/client/gui/screen/ingame/LoomScreen;hasTooManyPatterns:Zintermediary field_2961Lnet/minecraft/class_494;field_2961:Zofficial aeLgow;ae:Z
-
scrollPosition
private float scrollPosition- Mappings:
Namespace Name Mixin selector named scrollPositionLnet/minecraft/client/gui/screen/ingame/LoomScreen;scrollPosition:Fintermediary field_2968Lnet/minecraft/class_494;field_2968:Fofficial afLgow;af:F
-
scrollbarClicked
private boolean scrollbarClicked- Mappings:
Namespace Name Mixin selector named scrollbarClickedLnet/minecraft/client/gui/screen/ingame/LoomScreen;scrollbarClicked:Zintermediary field_2958Lnet/minecraft/class_494;field_2958:Zofficial agLgow;ag:Z
-
visibleTopRow
private int visibleTopRow- Mappings:
Namespace Name Mixin selector named visibleTopRowLnet/minecraft/client/gui/screen/ingame/LoomScreen;visibleTopRow:Iintermediary field_39190Lnet/minecraft/class_494;field_39190:Iofficial ahLgow;ah:I
-
-
Constructor Details
-
LoomScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/ingame/LoomScreen;<init>(Lnet/minecraft/screen/LoomScreenHandler;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/text/Text;)Vintermediary <init>Lnet/minecraft/class_494;<init>(Lnet/minecraft/class_1726;Lnet/minecraft/class_1661;Lnet/minecraft/class_2561;)Vofficial <init>Lgow;<init>(Lden;Lczk;Lxx;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
- Overrides:
initin classHandledScreen<LoomScreenHandler>- Mappings:
Namespace Name Mixin selector named initLnet/minecraft/client/gui/screen/Screen;init()Vintermediary method_25426Lnet/minecraft/class_437;method_25426()Vofficial bg_Lgmj;bg_()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classHandledScreen<LoomScreenHandler>- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLget;a(Lgdd;IIF)V
-
getRows
private int getRows()- Mappings:
Namespace Name Mixin selector named getRowsLnet/minecraft/client/gui/screen/ingame/LoomScreen;getRows()Iintermediary method_43774Lnet/minecraft/class_494;method_43774()Iofficial ILgow;I()I
-
drawBackground
- Specified by:
drawBackgroundin classHandledScreen<LoomScreenHandler>- Mappings:
Namespace Name Mixin selector named drawBackgroundLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(Lnet/minecraft/client/gui/DrawContext;FII)Vintermediary method_2389Lnet/minecraft/class_465;method_2389(Lnet/minecraft/class_332;FII)Vofficial aLgnq;a(Lgdd;FII)V
-
drawBanner
- Mappings:
Namespace Name Mixin selector named drawBannerLnet/minecraft/client/gui/screen/ingame/LoomScreen;drawBanner(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/client/texture/Sprite;)Vintermediary method_22692Lnet/minecraft/class_494;method_22692(Lnet/minecraft/class_332;IILnet/minecraft/class_1058;)Vofficial aLgow;a(Lgdd;IILico;)V
-
mouseClicked
Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Specified by:
mouseClickedin interfaceParentElement- Overrides:
mouseClickedin classHandledScreen<LoomScreenHandler>- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Zofficial aLggw;a(Lgti;Z)Z
-
mouseDragged
Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseDraggedin interfaceElement- Specified by:
mouseDraggedin interfaceParentElement- Overrides:
mouseDraggedin classHandledScreen<LoomScreenHandler>- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(Lnet/minecraft/client/gui/Click;DD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(Lnet/minecraft/class_11909;DD)Zofficial aLggw;a(Lgti;DD)Z
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.- Specified by:
mouseScrolledin interfaceElement- Specified by:
mouseScrolledin interfaceParentElement- Overrides:
mouseScrolledin classHandledScreen<LoomScreenHandler>- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehorizontalAmount- the horizontal scroll amountverticalAmount- the vertical scroll amount- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDDD)Zofficial aLggw;a(DDDD)Z
-
isClickOutsideBounds
protected boolean isClickOutsideBounds(double mouseX, double mouseY, int left, int top) - Overrides:
isClickOutsideBoundsin classHandledScreen<LoomScreenHandler>- Mappings:
Namespace Name Mixin selector named isClickOutsideBoundsLnet/minecraft/client/gui/screen/ingame/HandledScreen;isClickOutsideBounds(DDII)Zintermediary method_2381Lnet/minecraft/class_465;method_2381(DDII)Zofficial aLgnq;a(DDII)Z
-
onInventoryChanged
private void onInventoryChanged()- Mappings:
Namespace Name Mixin selector named onInventoryChangedLnet/minecraft/client/gui/screen/ingame/LoomScreen;onInventoryChanged()Vintermediary method_17576Lnet/minecraft/class_494;method_17576()Vofficial JLgow;J()V
-