Class OverlayRecipeComponent
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent
- All Implemented Interfaces:
GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate RecipeCollection(package private) booleanprivate booleanprivate static final floatprivate Recipe<?>private static final intprivate static final int(package private) Minecraft(package private) static final ResourceLocationprivate final List<OverlayRecipeComponent.OverlayRecipeButton>(package private) floatprivate intprivate intFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRecipe<?>voidinit(Minecraft p_100195_, RecipeCollection p_100196_, int p_100197_, int p_100198_, int p_100199_, int p_100200_, float p_100201_) booleanbooleanisMouseOver(double p_100208_, double p_100209_) booleanbooleanmouseClicked(double p_100186_, double p_100187_, int p_100188_) voidvoidsetFocused(boolean p_265597_) voidsetVisible(boolean p_100205_) 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, 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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
RECIPE_BOOK_LOCATION
-
MAX_ROW
private static final int MAX_ROW- See Also:
-
MAX_ROW_LARGE
private static final int MAX_ROW_LARGE- See Also:
-
ITEM_RENDER_SCALE
private static final float ITEM_RENDER_SCALE- See Also:
-
BUTTON_SIZE
public static final int BUTTON_SIZE- See Also:
-
recipeButtons
-
isVisible
private boolean isVisible -
x
private int x -
y
private int y -
minecraft
Minecraft minecraft -
collection
-
lastRecipeClicked
-
time
float time -
isFurnaceMenu
boolean isFurnaceMenu
-
-
Constructor Details
-
OverlayRecipeComponent
public OverlayRecipeComponent()
-
-
Method Details
-
init
public void init(Minecraft p_100195_, RecipeCollection p_100196_, int p_100197_, int p_100198_, int p_100199_, int p_100200_, float p_100201_) -
getRecipeCollection
-
getLastRecipeClicked
-
mouseClicked
public boolean mouseClicked(double p_100186_, double p_100187_, int p_100188_) - Specified by:
mouseClickedin interfaceGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_100208_, double p_100209_) - Specified by:
isMouseOverin interfaceGuiEventListener
-
render
- Specified by:
renderin interfaceRenderable
-
setVisible
public void setVisible(boolean p_100205_) -
isVisible
public boolean isVisible() -
setFocused
public void setFocused(boolean p_265597_) - Specified by:
setFocusedin interfaceGuiEventListener
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener
-