Class AnvilScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.inventory.ContainerScreen<T>
net.minecraft.client.gui.screen.inventory.AbstractRepairScreen<RepairContainer>
net.minecraft.client.gui.screen.inventory.AnvilScreen
- All Implemented Interfaces:
IGuiEventListener,IHasContainer<RepairContainer>,INestedGuiEventHandler,IRenderable,IScreen,IContainerListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate TextFieldWidgetprivate static final ITextComponentFields inherited from class net.minecraft.client.gui.screen.inventory.ContainerScreen
hoveredSlot, imageHeight, imageWidth, inventory, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, widthFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
ConstructorsConstructorDescriptionAnvilScreen(RepairContainer p_i51103_1_, PlayerInventory p_i51103_2_, ITextComponent p_i51103_3_) -
Method Summary
Modifier and TypeMethodDescriptionbooleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) private voidonNameChanged(String p_214075_1_) voidremoved()voidrenderFg(MatrixStack p_230452_1_, int p_230452_2_, int p_230452_3_, float p_230452_4_) protected voidrenderLabels(MatrixStack p_230451_1_, int p_230451_2_, int p_230451_3_) voidvoidslotChanged(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) protected voidsubInit()voidtick()Methods inherited from class net.minecraft.client.gui.screen.inventory.AbstractRepairScreen
init, refreshContainer, render, renderBg, setContainerDataMethods inherited from class net.minecraft.client.gui.screen.inventory.ContainerScreen
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, onClose, renderTooltip, slotClickedMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocus
-
Field Details
-
ANVIL_LOCATION
-
TOO_EXPENSIVE_TEXT
-
name
-
-
Constructor Details
-
AnvilScreen
public AnvilScreen(RepairContainer p_i51103_1_, PlayerInventory p_i51103_2_, ITextComponent p_i51103_3_)
-
-
Method Details
-
tick
public void tick()- Specified by:
tickin interfaceIScreen- Overrides:
tickin classContainerScreen<RepairContainer>
-
subInit
protected void subInit()- Overrides:
subInitin classAbstractRepairScreen<RepairContainer>
-
resize
-
removed
public void removed()- Overrides:
removedin classAbstractRepairScreen<RepairContainer>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener- Specified by:
keyPressedin interfaceINestedGuiEventHandler- Overrides:
keyPressedin classContainerScreen<RepairContainer>
-
onNameChanged
-
renderLabels
- Overrides:
renderLabelsin classContainerScreen<RepairContainer>
-
renderFg
- Overrides:
renderFgin classAbstractRepairScreen<RepairContainer>
-
slotChanged
- Specified by:
slotChangedin interfaceIContainerListener- Overrides:
slotChangedin classAbstractRepairScreen<RepairContainer>
-