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 fxz
-
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 ModelPartprivate @Nullable BannerPatternsComponentprivate booleanprivate ItemStackprivate static final Identifierprivate static final Identifierprivate 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_32322, field_52802, field_52803, focusedSlot, handler, playerInventoryTitle, playerInventoryTitleX, playerInventoryTitleY, titleX, titleY, x, yFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionLoomScreen(LoomScreenHandler screenHandler, PlayerInventory inventory, Text title) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackground(DrawContext context, float delta, int mouseX, int mouseY) private voiddrawBanner(DrawContext context, RegistryEntry<BannerPattern> pattern, int x, int y) private intgetRows()protected voidinit()Called when a screen should be initialized.protected booleanisClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button) booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) 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 delta) Methods inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
addTooltipSubmenuHandler, close, drawForeground, drawMouseoverTooltip, drawSlot, drawSlots, endTouchDrag, getScreenHandler, getTooltipFromItem, handledScreenTick, handleHotbarKeyPressed, isPointWithinBounds, keyPressed, mouseReleased, onMouseClick, onMouseClick, onSlotChangedState, removed, renderBackground, shouldPause, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, 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, 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 GLfxz;G:Lald;
-
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 HLfxz;H:Lald;
-
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 ILfxz;I:Lald;
-
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 JLfxz;J:Lald;
-
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 KLfxz;K:Lald;
-
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 LLfxz;L:Lald;
-
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 MLfxz;M:Lald;
-
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 NLfxz;N:Lald;
-
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 OLfxz;O:Lald;
-
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 PLfxz;P:Lald;
-
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 QLfxz;Q: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 RLfxz;R: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 SLfxz;S: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 TLfxz;T: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 ULfxz;U: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 VLfxz;V: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 WLfxz;W: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 XLfxz;X:I
-
bannerField
- Mappings:
Namespace Name Mixin selector named bannerFieldLnet/minecraft/client/gui/screen/ingame/LoomScreen;bannerField:Lnet/minecraft/client/model/ModelPart;intermediary field_21694Lnet/minecraft/class_494;field_21694:Lnet/minecraft/class_630;official YLfxz;Y:Lghd;
-
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 ZLfxz;Z:Ldvb;
-
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 aaLfxz;aa:Lcxy;
-
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 abLfxz;ab:Lcxy;
-
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 acLfxz;ac:Lcxy;
-
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 adLfxz;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 aeLfxz;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 afLfxz;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 agLfxz;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 ahLfxz;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>Lfxz;<init>(Lcuu;Lcqh;Lwv;)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 aN_Lfwf;aN_()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 aLfrq;a(Lfpz;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 GLfxz;G()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 aLfwu;a(Lfpz;FII)V
-
drawBanner
- Mappings:
Namespace Name Mixin selector named drawBannerLnet/minecraft/client/gui/screen/ingame/LoomScreen;drawBanner(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/registry/entry/RegistryEntry;II)Vintermediary method_22692Lnet/minecraft/class_494;method_22692(Lnet/minecraft/class_332;Lnet/minecraft/class_6880;II)Vofficial aLfxz;a(Lfpz;Ljs;II)V
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) 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>- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfsk;a(DDI)Z
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) 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>- Parameters:
mouseX- the current X coordinate of the mousemouseY- the current Y coordinate of the mousebutton- the mouse button numberdeltaX- the difference of the current X with the previous X coordinatedeltaY- the difference of the current Y with the previous Y coordinate- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseDraggedLnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Zintermediary method_25403Lnet/minecraft/class_364;method_25403(DDIDD)Zofficial aLfsk;a(DDIDD)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 aLfsk;a(DDDD)Z
-
isClickOutsideBounds
protected boolean isClickOutsideBounds(double mouseX, double mouseY, int left, int top, int button) - Overrides:
isClickOutsideBoundsin classHandledScreen<LoomScreenHandler>- Mappings:
Namespace Name Mixin selector named isClickOutsideBoundsLnet/minecraft/client/gui/screen/ingame/HandledScreen;isClickOutsideBounds(DDIII)Zintermediary method_2381Lnet/minecraft/class_465;method_2381(DDIII)Zofficial aLfwu;a(DDIII)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 HLfxz;H()V
-