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 gbk
-
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 deltaTicks, 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 deltaTicks) 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 GLgbk;G:Lalr;
-
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 HLgbk;H:Lalr;
-
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 ILgbk;I:Lalr;
-
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 JLgbk;J:Lalr;
-
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 KLgbk;K:Lalr;
-
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 LLgbk;L:Lalr;
-
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 MLgbk;M:Lalr;
-
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 NLgbk;N:Lalr;
-
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 OLgbk;O:Lalr;
-
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 PLgbk;P:Lalr;
-
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 QLgbk;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 RLgbk;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 SLgbk;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 TLgbk;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 ULgbk;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 VLgbk;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 WLgbk;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 XLgbk;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 YLgbk;Y:Lgkr;
-
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 ZLgbk;Z:Ldye;
-
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 aaLgbk;aa:Ldak;
-
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 abLgbk;ab:Ldak;
-
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 acLgbk;ac:Ldak;
-
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 adLgbk;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 aeLgbk;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 afLgbk;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 agLgbk;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 ahLgbk;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>Lgbk;<init>(Lcxi;Lcsh;Lxg;)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 aO_Lfzq;aO_()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 aLfvb;a(Lftk;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 GLgbk;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 aLgaf;a(Lftk;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 aLgbk;a(Lftk;Ljg;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 aLfvv;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 aLfvv;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 aLfvv;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 aLgaf;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 HLgbk;H()V
-