Class RecipeAlternativesWidget
java.lang.Object
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget
@Environment(CLIENT)
public class RecipeAlternativesWidget
extends Object
implements Drawable, Element
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget- intermediary - net/minecraft/class_508- official - fyi
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<RecipeAlternativesWidget.AlternativeButtonWidget> private intprivate int(package private) final CurrentIndexProviderprivate static final intprivate static final intprivate static final floatstatic final intprivate final booleanprivate @Nullable NetworkRecipeIdprivate static final Identifierprivate RecipeResultCollectionprivate booleanFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionRecipeAlternativesWidget(CurrentIndexProvider currentIndexProvider, boolean furnace) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.booleanbooleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float delta) voidsetFocused(boolean focused) voidsetVisible(boolean visible) voidshowAlternativesForResult(RecipeResultCollection resultCollection, ContextParameterMap context, boolean filteringCraftable, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrder
- 
Field Details- 
OVERLAY_RECIPE_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - OVERLAY_RECIPE_TEXTURE- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;OVERLAY_RECIPE_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45541- Lnet/minecraft/class_508;field_45541:Lnet/minecraft/class_2960;- official - b- Lfyi;b:Lakv;
 
- 
field_32406private static final int field_32406- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_32406- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32406:I- intermediary - field_32406- Lnet/minecraft/class_508;field_32406:I- official - c- Lfyi;c:I
 
- 
field_32407private static final int field_32407- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_32407- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32407:I- intermediary - field_32407- Lnet/minecraft/class_508;field_32407:I- official - d- Lfyi;d:I
 
- 
field_33739private static final float field_33739- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_33739- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_33739:F- intermediary - field_33739- Lnet/minecraft/class_508;field_33739:F- official - e- Lfyi;e:F
 
- 
field_42162public static final int field_42162- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_42162- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_42162:I- intermediary - field_42162- Lnet/minecraft/class_508;field_42162:I- official - a- Lfyi;a:I
 
- 
alternativeButtons- Mappings:
- Namespace - Name - Mixin selector - named - alternativeButtons- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;- intermediary - field_3106- Lnet/minecraft/class_508;field_3106:Ljava/util/List;- official - f- Lfyi;f:Ljava/util/List;
 
- 
visibleprivate boolean visible- Mappings:
- Namespace - Name - Mixin selector - named - visible- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Z- intermediary - field_3107- Lnet/minecraft/class_508;field_3107:Z- official - g- Lfyi;g:Z
 
- 
buttonXprivate int buttonX- Mappings:
- Namespace - Name - Mixin selector - named - buttonX- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:I- intermediary - field_3105- Lnet/minecraft/class_508;field_3105:I- official - h- Lfyi;h:I
 
- 
buttonYprivate int buttonY- Mappings:
- Namespace - Name - Mixin selector - named - buttonY- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:I- intermediary - field_3103- Lnet/minecraft/class_508;field_3103:I- official - i- Lfyi;i:I
 
- 
resultCollection- Mappings:
- Namespace - Name - Mixin selector - named - resultCollection- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;- intermediary - field_3111- Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;- official - j- Lfyi;j:Lfyn;
 
- 
lastClickedRecipe- Mappings:
- Namespace - Name - Mixin selector - named - lastClickedRecipe- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/NetworkRecipeId;- intermediary - field_3104- Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_10298;- official - k- Lfyi;k:Ldcm;
 
- 
currentIndexProvider- Mappings:
- Namespace - Name - Mixin selector - named - currentIndexProvider- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;currentIndexProvider:Lnet/minecraft/client/gui/screen/recipebook/CurrentIndexProvider;- intermediary - field_52829- Lnet/minecraft/class_508;field_52829:Lnet/minecraft/class_9938;- official - l- Lfyi;l:Lfyq;
 
- 
furnaceprivate final boolean furnace- Mappings:
- Namespace - Name - Mixin selector - named - furnace- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;furnace:Z- intermediary - field_3112- Lnet/minecraft/class_508;field_3112:Z- official - m- Lfyi;m:Z
 
 
- 
- 
Constructor Details- 
RecipeAlternativesWidget- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;<init>(Lnet/minecraft/client/gui/screen/recipebook/CurrentIndexProvider;Z)V- intermediary - <init>- Lnet/minecraft/class_508;<init>(Lnet/minecraft/class_9938;Z)V- official - <init>- Lfyi;<init>(Lfyq;Z)V
 
 
- 
- 
Method Details- 
showAlternativesForResultpublic void showAlternativesForResult(RecipeResultCollection resultCollection, ContextParameterMap context, boolean filteringCraftable, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta) - Mappings:
- Namespace - Name - Mixin selector - named - showAlternativesForResult- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/util/context/ContextParameterMap;ZIIIIF)V- intermediary - method_2617- Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_516;Lnet/minecraft/class_10352;ZIIIIF)V- official - a- Lfyi;a(Lfyn;Lbak;ZIIIIF)V
 
- 
getResults- Mappings:
- Namespace - Name - Mixin selector - named - getResults- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;- intermediary - method_2614- Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;- official - a- Lfyi;a()Lfyn;
 
- 
getLastClickedRecipe- Mappings:
- Namespace - Name - Mixin selector - named - getLastClickedRecipe- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/NetworkRecipeId;- intermediary - method_2615- Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_10298;- official - b- Lfyi;b()Ldcm;
 
- 
mouseClickedpublic boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
- mouseClickedin interface- Element
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- official - a- Lfqr;a(DDI)Z
 
- 
isMouseOverpublic boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
- isMouseOverin interface- Element
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- Returns:
- trueif the mouse is within the bound of the element, otherwise- false
- Mappings:
- Namespace - Name - Mixin selector - named - isMouseOver- Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z- intermediary - method_25405- Lnet/minecraft/class_364;method_25405(DD)Z- official - a_- Lfqr;a_(DD)Z
 
- 
render- Specified by:
- renderin interface- Drawable
- Mappings:
- Namespace - Name - Mixin selector - named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- official - a- Lfpx;a(Lfof;IIF)V
 
- 
setVisiblepublic void setVisible(boolean visible) - Mappings:
- Namespace - Name - Mixin selector - named - setVisible- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)V- intermediary - method_2613- Lnet/minecraft/class_508;method_2613(Z)V- official - b- Lfyi;b(Z)V
 
- 
isVisiblepublic boolean isVisible()- Mappings:
- Namespace - Name - Mixin selector - named - isVisible- Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Z- intermediary - method_2616- Lnet/minecraft/class_508;method_2616()Z- official - c- Lfyi;c()Z
 
- 
setFocusedpublic void setFocused(boolean focused) - Specified by:
- setFocusedin interface- Element
- Mappings:
- Namespace - Name - Mixin selector - named - setFocused- Lnet/minecraft/client/gui/Element;setFocused(Z)V- intermediary - method_25365- Lnet/minecraft/class_364;method_25365(Z)V- official - a- Lfqr;a(Z)V
 
- 
isFocusedpublic boolean isFocused()
 
-