Class SmithingScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<SmithingMenu>
net.minecraft.client.gui.screens.inventory.ItemCombinerScreen<SmithingMenu>
net.minecraft.client.gui.screens.inventory.SmithingScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<SmithingMenu>
,ContainerListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate final CyclingSlotBackground
private static final org.joml.Quaternionf
private static final int
private static final int
private static final int
private static final org.joml.Vector3f
private static final int
private static final int
private ArmorStand
private final CyclingSlotBackground
private static final ResourceLocation
private static final ResourceLocation
private static final List
<ResourceLocation> private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final Component
private static final Component
private final CyclingSlotBackground
private static final int
private static final int
private static final 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
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionSmithingScreen
(SmithingMenu p_99290_, Inventory p_99291_, Component p_99292_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
private Optional
<SmithingTemplateItem> private boolean
void
render
(GuiGraphics p_281961_, int p_282410_, int p_283013_, float p_282408_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an eventprotected void
renderBg
(GuiGraphics p_283264_, float p_267158_, int p_267266_, int p_266722_) protected void
renderErrorIcon
(GuiGraphics p_281835_, int p_283389_, int p_282634_) private void
renderOnboardingTooltips
(GuiGraphics p_281668_, int p_267192_, int p_266859_) void
slotChanged
(AbstractContainerMenu p_267217_, int p_266842_, ItemStack p_267208_) protected void
subInit()
private void
updateArmorStandPreview
(ItemStack p_268225_) Methods inherited from class net.minecraft.client.gui.screens.inventory.ItemCombinerScreen
dataChanged, init, removed, renderFg
Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, renderBackground, renderLabels, renderSlot, renderSlotContents, renderSlotHighlight, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tick
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, 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, mouseScrolled, 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
-
ERROR_SPRITE
-
EMPTY_SLOT_SMITHING_TEMPLATE_ARMOR_TRIM
-
EMPTY_SLOT_SMITHING_TEMPLATE_NETHERITE_UPGRADE
-
MISSING_TEMPLATE_TOOLTIP
-
ERROR_TOOLTIP
-
EMPTY_SLOT_SMITHING_TEMPLATES
-
TITLE_LABEL_X
private static final int TITLE_LABEL_X- See Also:
-
TITLE_LABEL_Y
private static final int TITLE_LABEL_Y- See Also:
-
ERROR_ICON_WIDTH
private static final int ERROR_ICON_WIDTH- See Also:
-
ERROR_ICON_HEIGHT
private static final int ERROR_ICON_HEIGHT- See Also:
-
ERROR_ICON_X
private static final int ERROR_ICON_X- See Also:
-
ERROR_ICON_Y
private static final int ERROR_ICON_Y- See Also:
-
TOOLTIP_WIDTH
private static final int TOOLTIP_WIDTH- See Also:
-
ARMOR_STAND_Y_ROT
private static final int ARMOR_STAND_Y_ROT- See Also:
-
ARMOR_STAND_X_ROT
private static final int ARMOR_STAND_X_ROT- See Also:
-
ARMOR_STAND_TRANSLATION
private static final org.joml.Vector3f ARMOR_STAND_TRANSLATION -
ARMOR_STAND_ANGLE
private static final org.joml.Quaternionf ARMOR_STAND_ANGLE -
ARMOR_STAND_SCALE
private static final int ARMOR_STAND_SCALE- See Also:
-
ARMOR_STAND_OFFSET_Y
private static final int ARMOR_STAND_OFFSET_Y- See Also:
-
ARMOR_STAND_OFFSET_X
private static final int ARMOR_STAND_OFFSET_X- See Also:
-
templateIcon
-
baseIcon
-
additionalIcon
-
armorStandPreview
-
-
Constructor Details
-
SmithingScreen
-
-
Method Details
-
subInit
protected void subInit()- Overrides:
subInit
in classItemCombinerScreen<SmithingMenu>
-
containerTick
public void containerTick()- Overrides:
containerTick
in classAbstractContainerScreen<SmithingMenu>
-
getTemplateItem
-
render
Description copied from class:Screen
Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)
replicates this method in place of a super call to insert an event- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classItemCombinerScreen<SmithingMenu>
-
renderBg
- Overrides:
renderBg
in classItemCombinerScreen<SmithingMenu>
-
slotChanged
- Specified by:
slotChanged
in interfaceContainerListener
- Overrides:
slotChanged
in classItemCombinerScreen<SmithingMenu>
-
updateArmorStandPreview
-
renderErrorIcon
- Specified by:
renderErrorIcon
in classItemCombinerScreen<SmithingMenu>
-
renderOnboardingTooltips
-
hasRecipeError
private boolean hasRecipeError()
-