Class AbstractFurnaceScreen<T extends AbstractFurnaceMenu>
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.AbstractFurnaceScreen<T>
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<T>
,RecipeUpdateListener
- Direct Known Subclasses:
BlastFurnaceScreen
,FurnaceScreen
,SmokerScreen
public abstract class AbstractFurnaceScreen<T extends AbstractFurnaceMenu>
extends AbstractContainerScreen<T>
implements RecipeUpdateListener
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
private final ResourceLocation
private boolean
Fields 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, topPos
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionAbstractFurnaceScreen
(T p_97825_, AbstractFurnaceRecipeBookComponent p_97826_, Inventory p_97827_, Component p_97828_, ResourceLocation p_97829_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_97831_, int p_97832_) void
protected boolean
hasClickedOutside
(double p_97838_, double p_97839_, int p_97840_, int p_97841_, int p_97842_) void
init()
boolean
keyPressed
(int p_97844_, int p_97845_, int p_97846_) boolean
mouseClicked
(double p_97834_, double p_97835_, int p_97836_) void
void
protected void
protected void
slotClicked
(Slot p_97848_, int p_97849_, int p_97850_, ClickType p_97851_) Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isHovering, isPauseScreen, mouseDragged, mouseReleased, onClose, removed, renderLabels, renderSlotHighlight, renderSlotHighlight, renderTooltip, tick
Methods 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, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods 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, 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.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
RECIPE_BUTTON_LOCATION
-
recipeBookComponent
-
widthTooNarrow
private boolean widthTooNarrow -
texture
-
-
Constructor Details
-
AbstractFurnaceScreen
public AbstractFurnaceScreen(T p_97825_, AbstractFurnaceRecipeBookComponent p_97826_, Inventory p_97827_, Component p_97828_, ResourceLocation p_97829_)
-
-
Method Details
-
init
public void init()- Overrides:
init
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
containerTick
public void containerTick()- Overrides:
containerTick
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
renderBg
- Specified by:
renderBg
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
mouseClicked
public boolean mouseClicked(double p_97834_, double p_97835_, int p_97836_) - Specified by:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
slotClicked
- Overrides:
slotClicked
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
keyPressed
public boolean keyPressed(int p_97844_, int p_97845_, int p_97846_) - Specified by:
keyPressed
in interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
hasClickedOutside
protected boolean hasClickedOutside(double p_97838_, double p_97839_, int p_97840_, int p_97841_, int p_97842_) - Overrides:
hasClickedOutside
in classAbstractContainerScreen<T extends AbstractFurnaceMenu>
-
charTyped
public boolean charTyped(char p_97831_, int p_97832_) - Specified by:
charTyped
in interfaceContainerEventHandler
- Specified by:
charTyped
in interfaceGuiEventListener
-
recipesUpdated
public void recipesUpdated()- Specified by:
recipesUpdated
in interfaceRecipeUpdateListener
-
getRecipeBookComponent
- Specified by:
getRecipeBookComponent
in interfaceRecipeUpdateListener
-