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 foa
-
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, 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, 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
close, drawForeground, drawMouseoverTooltip, drawSlot, drawSlotHighlight, endTouchDrag, getScreenHandler, getTooltipFromItem, handledScreenTick, handleHotbarKeyPressed, isPointWithinBounds, keyPressed, mouseReleased, onMouseClick, onSlotChangedState, removed, renderBackground, shouldPause, tickMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, updateNarrator, wrapScreenErrorMethods 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
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 DLfoa;D:Lakm;
-
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 ELfoa;E:Lakm;
-
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 FLfoa;F:Lakm;
-
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 GLfoa;G:Lakm;
-
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 HLfoa;H:Lakm;
-
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 ILfoa;I:Lakm;
-
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 JLfoa;J:Lakm;
-
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 KLfoa;K:Lakm;
-
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 LLfoa;L:Lakm;
-
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 MLfoa;M:Lakm;
-
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 NLfoa;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 OLfoa;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 PLfoa;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 QLfoa;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 RLfoa;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 SLfoa;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 TLfoa;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 ULfoa;U: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 VLfoa;V:Lfvw;
-
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 WLfoa;W:Ldnx;
-
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 XLfoa;X:Lcto;
-
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 YLfoa;Y:Lcto;
-
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 ZLfoa;Z:Lcto;
-
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 aaLfoa;aa: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 abLfoa;ab: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 acLfoa;ac: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 adLfoa;ad: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 aeLfoa;ae: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>Lfoa;<init>(Lcpy;Lclv;Lwx;)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.
This should call
Screen.setInitialFocus()to set the element that is initially focused.- 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 aM_Lfly;aM_()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 aLfhc;a(Lffm;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 ELfoa;E()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 aLfmw;a(Lffm;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 aLfoa;a(Lffm;Lix;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 aLfhv;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 aLfhv;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.- 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 aLfhv;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 aLfmw;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 FLfoa;F()V
-