Class LoomScreen
java.lang.Object
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
,Renderable
,TabOrderedElement
,MenuAccess<LoomMenu>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private ItemStack
private static final ResourceLocation
private boolean
private static final ResourceLocation
private ItemStack
private static final ResourceLocation
private ModelPart
private boolean
private static final int
private static final ResourceLocation
private static final int
private static final int
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final int
private static final int
private ItemStack
private List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,
DyeColor>> private static final ResourceLocation
private static final int
private static final int
private static final ResourceLocation
private static final int
private boolean
private float
private 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
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
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_, double p_295430_) void
render
(GuiGraphics p_283513_, int p_282700_, int p_282637_, float p_281433_) protected void
renderBg
(GuiGraphics p_282870_, float p_281777_, int p_283331_, int p_283087_) private void
renderPattern
(GuiGraphics p_282452_, Holder<BannerPattern> p_281940_, int p_281872_, int p_282995_) private int
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, isHovering, isPauseScreen, keyPressed, mouseReleased, onClose, removed, renderBackground, renderLabels, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
BANNER_SLOT_SPRITE
-
DYE_SLOT_SPRITE
-
PATTERN_SLOT_SPRITE
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
PATTERN_SELECTED_SPRITE
-
PATTERN_HIGHLIGHTED_SPRITE
-
PATTERN_SPRITE
-
ERROR_SPRITE
-
BG_LOCATION
-
PATTERN_COLUMNS
private static final int PATTERN_COLUMNS- See Also:
-
PATTERN_ROWS
private static final int PATTERN_ROWS- See Also:
-
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- See Also:
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- See Also:
-
PATTERN_IMAGE_SIZE
private static final int PATTERN_IMAGE_SIZE- See Also:
-
SCROLLER_FULL_HEIGHT
private static final int SCROLLER_FULL_HEIGHT- See Also:
-
PATTERNS_X
private static final int PATTERNS_X- See Also:
-
PATTERNS_Y
private static final int PATTERNS_Y- See Also:
-
flag
-
resultBannerPatterns
@Nullable private List<com.mojang.datafixers.util.Pair<Holder<BannerPattern>,DyeColor>> resultBannerPatterns -
bannerStack
-
dyeStack
-
patternStack
-
displayPatterns
private boolean displayPatterns -
hasMaxPatterns
private boolean hasMaxPatterns -
scrollOffs
private float scrollOffs -
scrolling
private boolean scrolling -
startRow
private int startRow
-
-
Constructor Details
-
LoomScreen
-
-
Method Details
-
init
protected void init()- Overrides:
init
in classAbstractContainerScreen<LoomMenu>
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classAbstractContainerScreen<LoomMenu>
-
totalRowCount
private int totalRowCount() -
renderBg
- Specified by:
renderBg
in classAbstractContainerScreen<LoomMenu>
-
renderPattern
private void renderPattern(GuiGraphics p_282452_, Holder<BannerPattern> p_281940_, int p_281872_, int p_282995_) -
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_, double p_295430_) -
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()
-