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 fqq
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<RecipeAlternativesWidget.AlternativeButtonWidget> private int
private int
private MinecraftClient
(package private) static final Identifier
(package private) static final Identifier
(package private) static final Identifier
(package private) static final Identifier
private static final int
private static final int
private static final float
static final int
(package private) boolean
(package private) static final Identifier
(package private) static final Identifier
(package private) static final Identifier
(package private) static final Identifier
private @Nullable RecipeEntry
<?> private static final Identifier
private RecipeResultCollection
(package private) float
private boolean
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isMouseOver
(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.boolean
boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
setFocused
(boolean focused) void
setVisible
(boolean visible) void
showAlternativesForResult
(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, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
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
Lfqq;b:Lalf;
-
FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45542
Lnet/minecraft/class_508;field_45542:Lnet/minecraft/class_2960;
official c
Lfqq;c:Lalf;
-
FURNACE_OVERLAY_TEXTURE
- Mappings:
Namespace Name Mixin selector named FURNACE_OVERLAY_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45543
Lnet/minecraft/class_508;field_45543:Lnet/minecraft/class_2960;
official d
Lfqq;d:Lalf;
-
CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45544
Lnet/minecraft/class_508;field_45544:Lnet/minecraft/class_2960;
official e
Lfqq;e:Lalf;
-
CRAFTING_OVERLAY_TEXTURE
- Mappings:
Namespace Name Mixin selector named CRAFTING_OVERLAY_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45545
Lnet/minecraft/class_508;field_45545:Lnet/minecraft/class_2960;
official f
Lfqq;f:Lalf;
-
FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45546
Lnet/minecraft/class_508;field_45546:Lnet/minecraft/class_2960;
official g
Lfqq;g:Lalf;
-
FURNACE_OVERLAY_DISABLED_TEXTURE
- Mappings:
Namespace Name Mixin selector named FURNACE_OVERLAY_DISABLED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45547
Lnet/minecraft/class_508;field_45547:Lnet/minecraft/class_2960;
official h
Lfqq;h:Lalf;
-
CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
- Mappings:
Namespace Name Mixin selector named CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45548
Lnet/minecraft/class_508;field_45548:Lnet/minecraft/class_2960;
official i
Lfqq;i:Lalf;
-
CRAFTING_OVERLAY_DISABLED_TEXTURE
- Mappings:
Namespace Name Mixin selector named CRAFTING_OVERLAY_DISABLED_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45549
Lnet/minecraft/class_508;field_45549:Lnet/minecraft/class_2960;
official j
Lfqq;j:Lalf;
-
field_32406
private 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 k
Lfqq;k:I
-
field_32407
private 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 l
Lfqq;l:I
-
field_33739
private 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 m
Lfqq;m:F
-
field_42162
public 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
Lfqq;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 n
Lfqq;n:Ljava/util/List;
-
visible
private 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 o
Lfqq;o:Z
-
buttonX
private 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 p
Lfqq;p:I
-
buttonY
private 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 q
Lfqq;q:I
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_3108
Lnet/minecraft/class_508;field_3108:Lnet/minecraft/class_310;
official r
Lfqq;r:Lffg;
-
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 s
Lfqq;s:Lfqv;
-
lastClickedRecipe
- Mappings:
Namespace Name Mixin selector named lastClickedRecipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/RecipeEntry;
intermediary field_3104
Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_8786;
official u
Lfqq;u:Lcyy;
-
time
float time- Mappings:
Namespace Name Mixin selector named time
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;time:F
intermediary field_3110
Lnet/minecraft/class_508;field_3110:F
official v
Lfqq;v:F
-
furnace
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 w
Lfqq;w: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 named showAlternativesForResult
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;IIIIF)V
intermediary method_2617
Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_310;Lnet/minecraft/class_516;IIIIF)V
official a
Lfqq;a(Lffg;Lfqv;IIIIF)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
Lfqq;a()Lfqv;
-
getLastClickedRecipe
- Mappings:
Namespace Name Mixin selector named getLastClickedRecipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/RecipeEntry;
intermediary method_2615
Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_8786;
official b
Lfqq;b()Lcyy;
-
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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to 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
Lfjb;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:
isMouseOver
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouse- Returns:
true
if the mouse is within the bound of the element, otherwisefalse
- 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 c
Lfjb;c(DD)Z
-
render
- Specified by:
render
in interfaceDrawable
- 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
Lfii;a(Lfgs;IIF)V
-
setVisible
public 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
Lfqq;b(Z)V
-
isVisible
public 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
Lfqq;c()Z
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocused
in interfaceElement
- 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
Lfjb;a(Z)V
-
isFocused
public boolean isFocused()
-