Class OverlayRecipeComponent
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent
- All Implemented Interfaces:
GuiEventListener
,Widget
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate RecipeCollection
(package private) boolean
private boolean
private static final float
private Recipe<?>
private static final int
private static final int
(package private) Minecraft
(package private) static final ResourceLocation
private final List<OverlayRecipeComponent.OverlayRecipeButton>
(package private) float
private int
private int
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
changeFocus
(boolean p_100224_) Recipe<?>
void
init
(Minecraft p_100195_, RecipeCollection p_100196_, int p_100197_, int p_100198_, int p_100199_, int p_100200_, float p_100201_) boolean
isMouseOver
(double p_100208_, double p_100209_) boolean
boolean
mouseClicked
(double p_100186_, double p_100187_, int p_100188_) private void
nineInchSprite
(PoseStack p_100214_, int p_100215_, int p_100216_, int p_100217_, int p_100218_, int p_100219_, int p_100220_) void
void
setVisible
(boolean p_100205_) Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, 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.components.events.GuiEventListener
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
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:
-
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_) -
changeFocus
public boolean changeFocus(boolean p_100224_) - Specified by:
changeFocus
in interfaceGuiEventListener
-
getRecipeCollection
-
getLastRecipeClicked
-
mouseClicked
public boolean mouseClicked(double p_100186_, double p_100187_, int p_100188_) - Specified by:
mouseClicked
in interfaceGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_100208_, double p_100209_) - Specified by:
isMouseOver
in interfaceGuiEventListener
-
render
-
nineInchSprite
private void nineInchSprite(PoseStack p_100214_, int p_100215_, int p_100216_, int p_100217_, int p_100218_, int p_100219_, int p_100220_) -
setVisible
public void setVisible(boolean p_100205_) -
isVisible
public boolean isVisible()
-