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 official fbvintermediary net/minecraft/class_508named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RecipeAlternativesWidget.AlternativeButtonWidget>private intprivate intprivate MinecraftClient(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifierprivate static final intprivate static final intprivate static final floatstatic final int(package private) boolean(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) static final Identifierprivate @Nullable RecipeEntry<?>private static final Identifierprivate RecipeResultCollection(package private) floatprivate booleanFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
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(MinecraftClient client, RecipeResultCollection results, 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 official bLfbv;b:Laex;intermediary field_45541Lnet/minecraft/class_508;field_45541:Lnet/minecraft/class_2960;named OVERLAY_RECIPE_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;OVERLAY_RECIPE_TEXTURE:Lnet/minecraft/util/Identifier;
-
FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official cLfbv;c:Laex;intermediary field_45542Lnet/minecraft/class_508;field_45542:Lnet/minecraft/class_2960;named FURNACE_OVERLAY_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
FURNACE_OVERLAY_TEXTURE
- Mappings:
Namespace Name Mixin selector official dLfbv;d:Laex;intermediary field_45543Lnet/minecraft/class_508;field_45543:Lnet/minecraft/class_2960;named FURNACE_OVERLAY_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
-
CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official eLfbv;e:Laex;intermediary field_45544Lnet/minecraft/class_508;field_45544:Lnet/minecraft/class_2960;named CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
CRAFTING_OVERLAY_TEXTURE
- Mappings:
Namespace Name Mixin selector official fLfbv;f:Laex;intermediary field_45545Lnet/minecraft/class_508;field_45545:Lnet/minecraft/class_2960;named CRAFTING_OVERLAY_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
-
FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official gLfbv;g:Laex;intermediary field_45546Lnet/minecraft/class_508;field_45546:Lnet/minecraft/class_2960;named FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
FURNACE_OVERLAY_DISABLED_TEXTURE
- Mappings:
Namespace Name Mixin selector official hLfbv;h:Laex;intermediary field_45547Lnet/minecraft/class_508;field_45547:Lnet/minecraft/class_2960;named FURNACE_OVERLAY_DISABLED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
-
CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector official iLfbv;i:Laex;intermediary field_45548Lnet/minecraft/class_508;field_45548:Lnet/minecraft/class_2960;named CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
-
CRAFTING_OVERLAY_DISABLED_TEXTURE
- Mappings:
Namespace Name Mixin selector official jLfbv;j:Laex;intermediary field_45549Lnet/minecraft/class_508;field_45549:Lnet/minecraft/class_2960;named CRAFTING_OVERLAY_DISABLED_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32406
private static final int field_32406- See Also:
- Mappings:
Namespace Name Mixin selector official kLfbv;k:Iintermediary field_32406Lnet/minecraft/class_508;field_32406:Inamed field_32406Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32406:I
-
field_32407
private static final int field_32407- See Also:
- Mappings:
Namespace Name Mixin selector official lLfbv;l:Iintermediary field_32407Lnet/minecraft/class_508;field_32407:Inamed field_32407Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32407:I
-
field_33739
private static final float field_33739- See Also:
- Mappings:
Namespace Name Mixin selector official mLfbv;m:Fintermediary field_33739Lnet/minecraft/class_508;field_33739:Fnamed field_33739Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_33739:F
-
field_42162
public static final int field_42162- See Also:
- Mappings:
Namespace Name Mixin selector official aLfbv;a:Iintermediary field_42162Lnet/minecraft/class_508;field_42162:Inamed field_42162Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_42162:I
-
alternativeButtons
- Mappings:
Namespace Name Mixin selector official nLfbv;n:Ljava/util/List;intermediary field_3106Lnet/minecraft/class_508;field_3106:Ljava/util/List;named alternativeButtonsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector official oLfbv;o:Zintermediary field_3107Lnet/minecraft/class_508;field_3107:Znamed visibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Z
-
buttonX
private int buttonX- Mappings:
Namespace Name Mixin selector official pLfbv;p:Iintermediary field_3105Lnet/minecraft/class_508;field_3105:Inamed buttonXLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:I
-
buttonY
private int buttonY- Mappings:
Namespace Name Mixin selector official qLfbv;q:Iintermediary field_3103Lnet/minecraft/class_508;field_3103:Inamed buttonYLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:I
-
client
- Mappings:
Namespace Name Mixin selector official sLfbv;s:Leqv;intermediary field_3108Lnet/minecraft/class_508;field_3108:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;client:Lnet/minecraft/client/MinecraftClient;
-
resultCollection
- Mappings:
Namespace Name Mixin selector official tLfbv;t:Lfca;intermediary field_3111Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;named resultCollectionLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
lastClickedRecipe
- Mappings:
Namespace Name Mixin selector official uLfbv;u:Lcmk;intermediary field_3104Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_8786;named lastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/RecipeEntry;
-
time
float time- Mappings:
Namespace Name Mixin selector official vLfbv;v:Fintermediary field_3110Lnet/minecraft/class_508;field_3110:Fnamed timeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;time:F
-
furnace
boolean furnace- Mappings:
Namespace Name Mixin selector official wLfbv;w:Zintermediary field_3112Lnet/minecraft/class_508;field_3112:Znamed furnaceLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;furnace:Z
-
-
Constructor Details
-
RecipeAlternativesWidget
public RecipeAlternativesWidget()
-
-
Method Details
-
showAlternativesForResult
public void showAlternativesForResult(MinecraftClient client, RecipeResultCollection results, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta) - Mappings:
Namespace Name Mixin selector official aLfbv;a(Leqv;Lfca;IIIIF)Vintermediary method_2617Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_310;Lnet/minecraft/class_516;IIIIF)Vnamed showAlternativesForResultLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;IIIIF)V
-
getResults
- Mappings:
Namespace Name Mixin selector official aLfbv;a()Lfca;intermediary method_2614Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;named getResultsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
getLastClickedRecipe
- Mappings:
Namespace Name Mixin selector official bLfbv;b()Lcmk;intermediary method_2615Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_8786;named getLastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/RecipeEntry;
-
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 official aLeuk;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(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 official a_Leuk;a_(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
render
- Specified by:
renderin interfaceDrawable- Mappings:
Namespace Name Mixin selector official aLets;a(Lesf;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector official bLfbv;b(Z)Vintermediary method_2613Lnet/minecraft/class_508;method_2613(Z)Vnamed setVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector official dLfbv;d()Zintermediary method_2616Lnet/minecraft/class_508;method_2616()Znamed isVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceElement- Mappings:
Namespace Name Mixin selector official b_Leuk;b_(Z)Vintermediary method_25365Lnet/minecraft/class_364;method_25365(Z)Vnamed setFocusedLnet/minecraft/client/gui/Element;setFocused(Z)V
-
isFocused
public boolean isFocused()
-