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) class
RecipeOverlayGui.FurnaceRecipeButtonWidget
(package private) class
RecipeOverlayGui.RecipeButtonWidget
-
Field Summary
Fields Modifier and Type Field Description private RecipeList
collection
private boolean
isFurnaceMenu
private boolean
isVisible
private IRecipe<?>
lastRecipeClicked
private Minecraft
minecraft
private static ResourceLocation
RECIPE_BOOK_LOCATION
private java.util.List<RecipeOverlayGui.RecipeButtonWidget>
recipeButtons
private float
time
private int
x
private int
y
-
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 boolean
changeFocus(boolean p_231049_1_)
IRecipe<?>
getLastRecipeClicked()
RecipeList
getRecipeCollection()
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_)
boolean
isMouseOver(double p_231047_1_, double p_231047_3_)
boolean
isVisible()
boolean
mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
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_)
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
void
setVisible(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:
changeFocus
in 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:
mouseClicked
in interfaceIGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_231047_1_, double p_231047_3_)
- Specified by:
isMouseOver
in interfaceIGuiEventListener
-
render
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
render
in 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()
-
-