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
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private TextFieldWidget
private static final ITextComponent
Fields 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, topPos
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionAnvilScreen
(RepairContainer p_i51103_1_, PlayerInventory p_i51103_2_, ITextComponent p_i51103_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) private void
onNameChanged
(String p_214075_1_) void
removed()
void
renderFg
(MatrixStack p_230452_1_, int p_230452_2_, int p_230452_3_, float p_230452_4_) protected void
renderLabels
(MatrixStack p_230451_1_, int p_230451_2_, int p_230451_3_) void
void
slotChanged
(Container p_71111_1_, int p_71111_2_, ItemStack p_71111_3_) protected void
subInit()
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.inventory.AbstractRepairScreen
init, refreshContainer, render, renderBg, setContainerData
Methods 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, slotClicked
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
Methods 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:
tick
in interfaceIScreen
- Overrides:
tick
in classContainerScreen<RepairContainer>
-
subInit
protected void subInit()- Overrides:
subInit
in classAbstractRepairScreen<RepairContainer>
-
resize
-
removed
public void removed()- Overrides:
removed
in classAbstractRepairScreen<RepairContainer>
-
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classContainerScreen<RepairContainer>
-
onNameChanged
-
renderLabels
- Overrides:
renderLabels
in classContainerScreen<RepairContainer>
-
renderFg
- Overrides:
renderFg
in classAbstractRepairScreen<RepairContainer>
-
slotChanged
- Specified by:
slotChanged
in interfaceIContainerListener
- Overrides:
slotChanged
in classAbstractRepairScreen<RepairContainer>
-