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/RecipeAlternativesWidgetintermediary net/minecraft/class_508official fxu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate class -
Field Summary
FieldsModifier 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.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionRecipeAlternativesWidget(CurrentIndexProvider currentIndexProvider, boolean furnace) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
OVERLAY_RECIPE_TEXTURE
- Mappings:
Namespace Name Mixin selector named OVERLAY_RECIPE_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;OVERLAY_RECIPE_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45541Lnet/minecraft/class_508;field_45541:Lnet/minecraft/class_2960;official bLfxu;b:Lalz;
-
field_32406
private static final int field_32406- See Also:
- Mappings:
Namespace Name Mixin selector named field_32406Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32406:Iintermediary field_32406Lnet/minecraft/class_508;field_32406:Iofficial cLfxu;c:I
-
field_32407
private static final int field_32407- See Also:
- Mappings:
Namespace Name Mixin selector named field_32407Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32407:Iintermediary field_32407Lnet/minecraft/class_508;field_32407:Iofficial dLfxu;d:I
-
field_33739
private static final float field_33739- See Also:
- Mappings:
Namespace Name Mixin selector named field_33739Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_33739:Fintermediary field_33739Lnet/minecraft/class_508;field_33739:Fofficial eLfxu;e:F
-
field_42162
public static final int field_42162- See Also:
- Mappings:
Namespace Name Mixin selector named field_42162Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_42162:Iintermediary field_42162Lnet/minecraft/class_508;field_42162:Iofficial aLfxu;a:I
-
alternativeButtons
- Mappings:
Namespace Name Mixin selector named alternativeButtonsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;intermediary field_3106Lnet/minecraft/class_508;field_3106:Ljava/util/List;official fLfxu;f:Ljava/util/List;
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector named visibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Zintermediary field_3107Lnet/minecraft/class_508;field_3107:Zofficial gLfxu;g:Z
-
buttonX
private int buttonX- Mappings:
Namespace Name Mixin selector named buttonXLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:Iintermediary field_3105Lnet/minecraft/class_508;field_3105:Iofficial hLfxu;h:I
-
buttonY
private int buttonY- Mappings:
Namespace Name Mixin selector named buttonYLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:Iintermediary field_3103Lnet/minecraft/class_508;field_3103:Iofficial iLfxu;i:I
-
resultCollection
- Mappings:
Namespace Name Mixin selector named resultCollectionLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;intermediary field_3111Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;official jLfxu;j:Lfxz;
-
lastClickedRecipe
- Mappings:
Namespace Name Mixin selector named lastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/NetworkRecipeId;intermediary field_3104Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_10298;official kLfxu;k:Lddl;
-
currentIndexProvider
- Mappings:
Namespace Name Mixin selector named currentIndexProviderLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;currentIndexProvider:Lnet/minecraft/client/gui/screen/recipebook/CurrentIndexProvider;intermediary field_52829Lnet/minecraft/class_508;field_52829:Lnet/minecraft/class_9938;official lLfxu;l:Lfyc;
-
furnace
private final boolean furnace- Mappings:
Namespace Name Mixin selector named furnaceLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;furnace:Zintermediary field_3112Lnet/minecraft/class_508;field_3112:Zofficial mLfxu;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)Vintermediary <init>Lnet/minecraft/class_508;<init>(Lnet/minecraft/class_9938;Z)Vofficial <init>Lfxu;<init>(Lfyc;Z)V
-
-
Method Details
-
showAlternativesForResult
public void showAlternativesForResult(RecipeResultCollection resultCollection, ContextParameterMap context, boolean filteringCraftable, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta) - Mappings:
Namespace Name Mixin selector named showAlternativesForResultLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/util/context/ContextParameterMap;ZIIIIF)Vintermediary method_2617Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_516;Lnet/minecraft/class_10352;ZIIIIF)Vofficial aLfxu;a(Lfxz;Lbbp;ZIIIIF)V
-
getResults
- Mappings:
Namespace Name Mixin selector named getResultsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;intermediary method_2614Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;official aLfxu;a()Lfxz;
-
getLastClickedRecipe
- Mappings:
Namespace Name Mixin selector named getLastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/NetworkRecipeId;intermediary method_2615Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_10298;official bLfxu;b()Lddl;
-
mouseClicked
public 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 interfaceElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfqd;a(DDI)Z
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Specified by:
isMouseOverin interfaceElement- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- Returns:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector named isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Zofficial cLfqd;c(DD)Z
-
render
- Specified by:
renderin interfaceDrawable- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfpj;a(Lfns;IIF)V
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector named setVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)Vintermediary method_2613Lnet/minecraft/class_508;method_2613(Z)Vofficial bLfxu;b(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector named isVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Zintermediary method_2616Lnet/minecraft/class_508;method_2616()Zofficial cLfxu;c()Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceElement- Mappings:
Namespace Name Mixin selector named setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)Vintermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vofficial aLfqd;a(Z)V
-
isFocused
public boolean isFocused()
-