Class AbstractFurnaceScreen<T extends AbstractFurnaceContainer>
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.AbstractFurnaceScreen<T>
- All Implemented Interfaces:
IGuiEventListener,IHasContainer<T>,INestedGuiEventHandler,IRenderable,IRecipeShownListener,IScreen
- Direct Known Subclasses:
BlastFurnaceScreen,FurnaceScreen,SmokerScreen
public abstract class AbstractFurnaceScreen<T extends AbstractFurnaceContainer>
extends ContainerScreen<T>
implements IRecipeShownListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationfinal AbstractRecipeBookGuiprivate final ResourceLocationprivate booleanFields 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
ConstructorsConstructorDescriptionAbstractFurnaceScreen(T p_i51104_1_, AbstractRecipeBookGui p_i51104_2_, PlayerInventory p_i51104_3_, ITextComponent p_i51104_4_, ResourceLocation p_i51104_5_) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char p_231042_1_, int p_231042_2_) protected booleanhasClickedOutside(double p_195361_1_, double p_195361_3_, int p_195361_5_, int p_195361_6_, int p_195361_7_) voidinit()booleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) voidvoidremoved()voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) protected voidrenderBg(MatrixStack p_230450_1_, float p_230450_2_, int p_230450_3_, int p_230450_4_) protected voidslotClicked(Slot p_184098_1_, int p_184098_2_, int p_184098_3_, ClickType p_184098_4_) voidtick()Methods inherited from class net.minecraft.client.gui.screen.inventory.ContainerScreen
checkHotbarKeyPressed, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isHovering, isPauseScreen, mouseDragged, mouseReleased, onClose, renderLabels, renderTooltipMethods 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, resize, 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, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseScrolled, setInitialFocus
-
Field Details
-
RECIPE_BUTTON_LOCATION
-
recipeBookComponent
-
widthTooNarrow
private boolean widthTooNarrow -
texture
-
-
Constructor Details
-
AbstractFurnaceScreen
public AbstractFurnaceScreen(T p_i51104_1_, AbstractRecipeBookGui p_i51104_2_, PlayerInventory p_i51104_3_, ITextComponent p_i51104_4_, ResourceLocation p_i51104_5_)
-
-
Method Details
-
init
public void init()- Overrides:
initin classContainerScreen<T extends AbstractFurnaceContainer>
-
tick
public void tick()- Specified by:
tickin interfaceIScreen- Overrides:
tickin classContainerScreen<T extends AbstractFurnaceContainer>
-
render
- Specified by:
renderin interfaceIRenderable- Overrides:
renderin classContainerScreen<T extends AbstractFurnaceContainer>
-
renderBg
protected void renderBg(MatrixStack p_230450_1_, float p_230450_2_, int p_230450_3_, int p_230450_4_) - Specified by:
renderBgin classContainerScreen<T extends AbstractFurnaceContainer>
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) - Specified by:
mouseClickedin interfaceIGuiEventListener- Specified by:
mouseClickedin interfaceINestedGuiEventHandler- Overrides:
mouseClickedin classContainerScreen<T extends AbstractFurnaceContainer>
-
slotClicked
protected void slotClicked(Slot p_184098_1_, int p_184098_2_, int p_184098_3_, ClickType p_184098_4_) - Overrides:
slotClickedin classContainerScreen<T extends AbstractFurnaceContainer>
-
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<T extends AbstractFurnaceContainer>
-
hasClickedOutside
protected boolean hasClickedOutside(double p_195361_1_, double p_195361_3_, int p_195361_5_, int p_195361_6_, int p_195361_7_) - Overrides:
hasClickedOutsidein classContainerScreen<T extends AbstractFurnaceContainer>
-
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) - Specified by:
charTypedin interfaceIGuiEventListener- Specified by:
charTypedin interfaceINestedGuiEventHandler
-
recipesUpdated
public void recipesUpdated()- Specified by:
recipesUpdatedin interfaceIRecipeShownListener
-
getRecipeBookComponent
- Specified by:
getRecipeBookComponentin interfaceIRecipeShownListener
-
removed
public void removed()- Overrides:
removedin classContainerScreen<T extends AbstractFurnaceContainer>
-