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
Modifier and TypeFieldDescriptionprivate static final ResourceLocation
final AbstractRecipeBookGui
private final ResourceLocation
private boolean
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
ConstructorDescriptionAbstractFurnaceScreen
(T p_i51104_1_, AbstractRecipeBookGui p_i51104_2_, PlayerInventory p_i51104_3_, ITextComponent p_i51104_4_, ResourceLocation p_i51104_5_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
charTyped
(char p_231042_1_, int p_231042_2_) protected boolean
hasClickedOutside
(double p_195361_1_, double p_195361_3_, int p_195361_5_, int p_195361_6_, int p_195361_7_) void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) boolean
mouseClicked
(double p_231044_1_, double p_231044_3_, int p_231044_5_) void
void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) protected void
renderBg
(MatrixStack p_230450_1_, float p_230450_2_, int p_230450_3_, int p_230450_4_) protected void
slotClicked
(Slot p_184098_1_, int p_184098_2_, int p_184098_3_, ClickType p_184098_4_) void
tick()
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, renderTooltip
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, resize, 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, 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:
init
in classContainerScreen<T extends AbstractFurnaceContainer>
-
tick
public void tick()- Specified by:
tick
in interfaceIScreen
- Overrides:
tick
in classContainerScreen<T extends AbstractFurnaceContainer>
-
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in 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:
renderBg
in classContainerScreen<T extends AbstractFurnaceContainer>
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) - Specified by:
mouseClicked
in interfaceIGuiEventListener
- Specified by:
mouseClicked
in interfaceINestedGuiEventHandler
- Overrides:
mouseClicked
in 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:
slotClicked
in classContainerScreen<T extends AbstractFurnaceContainer>
-
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<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:
hasClickedOutside
in classContainerScreen<T extends AbstractFurnaceContainer>
-
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) - Specified by:
charTyped
in interfaceIGuiEventListener
- Specified by:
charTyped
in interfaceINestedGuiEventHandler
-
recipesUpdated
public void recipesUpdated()- Specified by:
recipesUpdated
in interfaceIRecipeShownListener
-
getRecipeBookComponent
- Specified by:
getRecipeBookComponent
in interfaceIRecipeShownListener
-
removed
public void removed()- Overrides:
removed
in classContainerScreen<T extends AbstractFurnaceContainer>
-