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 voidvoidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected voidextractErrorIcon(GuiGraphicsExtractor graphics, int xo, int yo) protected voidextractLabels(GuiGraphicsExtractor graphics, int xm, int ym) booleankeyPressed(KeyEvent event) private voidonNameChanged(String name) voidresize(int width, int height) protected voidvoidslotChanged(AbstractContainerMenu container, int slotIndex, ItemStack itemStack) protected voidsubInit()Methods inherited from class ItemCombinerScreen
dataChanged, init, removedMethods inherited from class AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, extractCarriedItem, extractContents, extractRenderState, extractSlot, extractSlots, extractSnapbackItem, extractTooltip, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, onClose, onMouseClickAction, renderSlotContents, slotClicked, tickMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, 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, preeditUpdated, 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
-
extractLabels
- Overrides:
extractLabelsin classAbstractContainerScreen<AnvilMenu>
-
extractBackground
- Overrides:
extractBackgroundin classItemCombinerScreen<AnvilMenu>
-
extractErrorIcon
- Specified by:
extractErrorIconin classItemCombinerScreen<AnvilMenu>
-
slotChanged
- Specified by:
slotChangedin interfaceContainerListener- Overrides:
slotChangedin classItemCombinerScreen<AnvilMenu>
-