Class RecipeOverlayGui
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.recipebook.RecipeOverlayGui
-
- All Implemented Interfaces:
IGuiEventListener,IRenderable
public class RecipeOverlayGui extends AbstractGui implements IRenderable, IGuiEventListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classRecipeOverlayGui.FurnaceRecipeButtonWidget(package private) classRecipeOverlayGui.RecipeButtonWidget
-
Field Summary
Fields Modifier and Type Field Description private RecipeListcollectionprivate booleanisFurnaceMenuprivate booleanisVisibleprivate IRecipe<?>lastRecipeClickedprivate Minecraftminecraftprivate static ResourceLocationRECIPE_BOOK_LOCATIONprivate java.util.List<RecipeOverlayGui.RecipeButtonWidget>recipeButtonsprivate floattimeprivate intxprivate inty-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description RecipeOverlayGui()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanchangeFocus(boolean p_231049_1_)IRecipe<?>getLastRecipeClicked()RecipeListgetRecipeCollection()voidinit(Minecraft p_201703_1_, RecipeList p_201703_2_, int p_201703_3_, int p_201703_4_, int p_201703_5_, int p_201703_6_, float p_201703_7_)booleanisMouseOver(double p_231047_1_, double p_231047_3_)booleanisVisible()booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)private voidnineInchSprite(MatrixStack p_238923_1_, int p_238923_2_, int p_238923_3_, int p_238923_4_, int p_238923_5_, int p_238923_6_, int p_238923_7_)voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)voidsetVisible(boolean p_192999_1_)-
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
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
-
-
-
Field Detail
-
RECIPE_BOOK_LOCATION
private static final ResourceLocation RECIPE_BOOK_LOCATION
-
recipeButtons
private final java.util.List<RecipeOverlayGui.RecipeButtonWidget> recipeButtons
-
isVisible
private boolean isVisible
-
x
private int x
-
y
private int y
-
minecraft
private Minecraft minecraft
-
collection
private RecipeList collection
-
lastRecipeClicked
private IRecipe<?> lastRecipeClicked
-
time
private float time
-
isFurnaceMenu
private boolean isFurnaceMenu
-
-
Method Detail
-
init
public void init(Minecraft p_201703_1_, RecipeList p_201703_2_, int p_201703_3_, int p_201703_4_, int p_201703_5_, int p_201703_6_, float p_201703_7_)
-
changeFocus
public boolean changeFocus(boolean p_231049_1_)
- Specified by:
changeFocusin interfaceIGuiEventListener
-
getRecipeCollection
public RecipeList getRecipeCollection()
-
getLastRecipeClicked
public IRecipe<?> getLastRecipeClicked()
-
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)- Specified by:
mouseClickedin interfaceIGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_231047_1_, double p_231047_3_)- Specified by:
isMouseOverin interfaceIGuiEventListener
-
render
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
renderin interfaceIRenderable
-
nineInchSprite
private void nineInchSprite(MatrixStack p_238923_1_, int p_238923_2_, int p_238923_3_, int p_238923_4_, int p_238923_5_, int p_238923_6_, int p_238923_7_)
-
setVisible
public void setVisible(boolean p_192999_1_)
-
isVisible
public boolean isVisible()
-
-