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
Modifier and TypeFieldDescriptionprivate ItemStack
private static int
private static ResourceLocation
private boolean
private boolean
private ItemStack
private ModelPart
private boolean
private static int
private static int
private static int
private static int
private static int
private ItemStack
private List<com.mojang.datafixers.util.Pair<BannerPattern,DyeColor>>
private static int
private static int
private static int
private boolean
private float
private int
private static int
Fields 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, topPos
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
protected boolean
hasClickedOutside(double p_99093_, double p_99094_, int p_99095_, int p_99096_, int p_99097_)
protected void
init()
boolean
mouseClicked(double p_99083_, double p_99084_, int p_99085_)
boolean
mouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_)
boolean
mouseScrolled(double p_99079_, double p_99080_, double p_99081_)
void
protected void
private void
renderPattern(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, tick
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods 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, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
Methods 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:
init
in classAbstractContainerScreen<LoomMenu>
-
render
- Specified by:
render
in interfaceWidget
- Overrides:
render
in classAbstractContainerScreen<LoomMenu>
-
renderBg
- Specified by:
renderBg
in 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:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractContainerScreen<LoomMenu>
-
mouseDragged
public boolean mouseDragged(double p_99087_, double p_99088_, int p_99089_, double p_99090_, double p_99091_)- Specified by:
mouseDragged
in interfaceContainerEventHandler
- Specified by:
mouseDragged
in interfaceGuiEventListener
- Overrides:
mouseDragged
in 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:
hasClickedOutside
in classAbstractContainerScreen<LoomMenu>
-
containerChanged
private void containerChanged()
-