Class LoomScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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,Widget,MenuAccess<LoomMenu>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ItemStackprivate static intprivate static ResourceLocationprivate booleanprivate booleanprivate ItemStackprivate ModelPartprivate booleanprivate static intprivate static intprivate static intprivate static intprivate static intprivate ItemStackprivate List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>private static intprivate static intprivate static intprivate booleanprivate floatprivate intprivate static intFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, 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.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier 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_)voidprotected voidprivate voidrenderPattern(int p_99109_, int p_99110_, int p_99111_)Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderLabels, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
BG_LOCATION
-
BASE_PATTERN_INDEX
private static final int BASE_PATTERN_INDEX- See Also:
- Constant Field Values
-
PATTERN_COLUMNS
private static final int PATTERN_COLUMNS- See Also:
- Constant Field Values
-
PATTERN_ROWS
private static final int PATTERN_ROWS- See Also:
- Constant Field Values
-
TOTAL_PATTERN_ROWS
private static final int TOTAL_PATTERN_ROWS -
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- See Also:
- Constant Field Values
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- See Also:
- Constant Field Values
-
PATTERN_IMAGE_SIZE
private static final int PATTERN_IMAGE_SIZE- See Also:
- Constant Field Values
-
SCROLLER_FULL_HEIGHT
private static final int SCROLLER_FULL_HEIGHT- See Also:
- Constant Field Values
-
PATTERNS_X
private static final int PATTERNS_X- See Also:
- Constant Field Values
-
PATTERNS_Y
private static final int PATTERNS_Y- See Also:
- Constant Field Values
-
flag
-
resultBannerPatterns
@Nullable private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>> resultBannerPatterns -
bannerStack
-
dyeStack
-
patternStack
-
displayPatterns
private boolean displayPatterns -
displaySpecialPattern
private boolean displaySpecialPattern -
hasMaxPatterns
private boolean hasMaxPatterns -
scrollOffs
private float scrollOffs -
scrolling
private boolean scrolling -
startIndex
private int startIndex
-
-
Constructor Details
-
LoomScreen
-
-
Method Details
-
init
protected void init()- Overrides:
initin classAbstractContainerScreen<LoomMenu>
-
render
- Specified by:
renderin interfaceWidget- Overrides:
renderin classAbstractContainerScreen<LoomMenu>
-
renderBg
- Specified by:
renderBgin classAbstractContainerScreen<LoomMenu>
-
renderPattern
private void renderPattern(int p_99109_, int p_99110_, int p_99111_) -
mouseClicked
public boolean mouseClicked(double p_99083_, double p_99084_, int p_99085_)- Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractContainerScreen<LoomMenu>
-
mouseDragged
public boolean mouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_)- Specified by:
mouseDraggedin interfaceContainerEventHandler- Specified by:
mouseDraggedin interfaceGuiEventListener- Overrides:
mouseDraggedin classAbstractContainerScreen<LoomMenu>
-
mouseScrolled
public boolean mouseScrolled(double p_99079_, double p_99080_, double p_99081_) -
hasClickedOutside
protected boolean hasClickedOutside(double p_99093_, double p_99094_, int p_99095_, int p_99096_, int p_99097_)- Overrides:
hasClickedOutsidein classAbstractContainerScreen<LoomMenu>
-
containerChanged
private void containerChanged()
-