Class SmithingScreen
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<T>
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
FieldsModifier and TypeFieldDescriptionprivate final CyclingSlotBackgroundstatic final org.joml.Quaternionfstatic final intstatic final intstatic final intstatic final intstatic final intprivate ArmorStandprivate final CyclingSlotBackgroundprivate static final ResourceLocationprivate static final ResourceLocationprivate static final List<ResourceLocation>private static final intprivate static final intprivate static final intprivate static final intprivate static final Componentprivate static final Componentprivate static final ResourceLocationprivate final CyclingSlotBackgroundprivate static final intprivate static final intprivate static final 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, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionSmithingScreen(SmithingMenu p_99290_, Inventory p_99291_, Component p_99292_) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate Optional<SmithingTemplateItem>private booleanvoidprotected voidprotected voidrenderErrorIcon(PoseStack p_267303_, int p_267072_, int p_267046_) private voidrenderOnboardingTooltips(PoseStack p_266689_, int p_267192_, int p_266859_) voidslotChanged(AbstractContainerMenu p_267217_, int p_266842_, ItemStack p_267208_) protected voidsubInit()private voidupdateArmorStandPreview(ItemStack p_268225_) Methods inherited from class net.minecraft.client.gui.screens.inventory.ItemCombinerScreen
dataChanged, init, removed, renderFgMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, renderLabels, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, 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, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
SMITHING_LOCATION
-
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
public static final int ARMOR_STAND_Y_ROT- See Also:
-
ARMOR_STAND_X_ROT
public static final int ARMOR_STAND_X_ROT- See Also:
-
ARMOR_STAND_ANGLE
public static final org.joml.Quaternionf ARMOR_STAND_ANGLE -
ARMOR_STAND_SCALE
public static final int ARMOR_STAND_SCALE- See Also:
-
ARMOR_STAND_OFFSET_Y
public static final int ARMOR_STAND_OFFSET_Y- See Also:
-
ARMOR_STAND_OFFSET_X
public static final int ARMOR_STAND_OFFSET_X- See Also:
-
templateIcon
-
baseIcon
-
additionalIcon
-
armorStandPreview
-
-
Constructor Details
-
SmithingScreen
-
-
Method Details
-
subInit
protected void subInit()- Overrides:
subInitin classItemCombinerScreen<SmithingMenu>
-
containerTick
public void containerTick()- Overrides:
containerTickin classAbstractContainerScreen<SmithingMenu>
-
getTemplateItem
-
render
- Specified by:
renderin interfaceRenderable- Overrides:
renderin classItemCombinerScreen<SmithingMenu>
-
renderBg
- Overrides:
renderBgin classItemCombinerScreen<SmithingMenu>
-
slotChanged
- Specified by:
slotChangedin interfaceContainerListener- Overrides:
slotChangedin classItemCombinerScreen<SmithingMenu>
-
updateArmorStandPreview
-
renderErrorIcon
- Specified by:
renderErrorIconin classItemCombinerScreen<SmithingMenu>
-
renderOnboardingTooltips
-
hasRecipeError
private boolean hasRecipeError()
-