Class AnvilScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<AnvilMenu>
net.minecraft.client.gui.screens.inventory.ItemCombinerScreen<AnvilMenu>
net.minecraft.client.gui.screens.inventory.AnvilScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, MenuAccess<AnvilMenu>, ContainerListener
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final Identifierprivate EditBoxprivate final Playerprivate static final Identifierprivate static final Identifierprivate static final ComponentFields inherited from class AbstractContainerScreen
BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, slotColor, titleLabelX, titleLabelY, topPosFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleankeyPressed(KeyEvent event) private voidonNameChanged(String name) protected voidrenderBg(GuiGraphics graphics, float a, int xm, int ym) protected voidrenderErrorIcon(GuiGraphics graphics, int xo, int yo) protected voidrenderLabels(GuiGraphics graphics, int xm, int ym) voidresize(int width, int height) protected voidvoidslotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) Sends the contents of an inventory slot to the client-side Container.protected voidsubInit()Methods inherited from class ItemCombinerScreen
dataChanged, init, removedMethods inherited from class AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, onClose, onMouseClickAction, render, renderBackground, renderCarriedItem, renderContents, renderSlot, renderSlotContents, renderSlots, renderSnapbackItem, renderTooltip, slotClicked, tickMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
TEXT_FIELD_SPRITE
-
TEXT_FIELD_DISABLED_SPRITE
-
ERROR_SPRITE
-
ANVIL_LOCATION
-
TOO_EXPENSIVE_TEXT
-
name
-
player
-
-
Constructor Details
-
AnvilScreen
-
-
Method Details
-
subInit
protected void subInit()- Overrides:
subInitin classItemCombinerScreen<AnvilMenu>
-
containerTick
protected void containerTick()- Overrides:
containerTickin classAbstractContainerScreen<AnvilMenu>
-
setInitialFocus
protected void setInitialFocus()- Overrides:
setInitialFocusin classScreen
-
resize
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classAbstractContainerScreen<AnvilMenu>
-
onNameChanged
-
renderLabels
- Overrides:
renderLabelsin classAbstractContainerScreen<AnvilMenu>
-
renderBg
- Overrides:
renderBgin classItemCombinerScreen<AnvilMenu>
-
renderErrorIcon
- Specified by:
renderErrorIconin classItemCombinerScreen<AnvilMenu>
-
slotChanged
Sends the contents of an inventory slot to the client-side Container. This doesn't have to match the actual contents of that slot.- Specified by:
slotChangedin interfaceContainerListener- Overrides:
slotChangedin classItemCombinerScreen<AnvilMenu>
-