Class RecipeAlternativesWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget
@Environment(CLIENT)
public class RecipeAlternativesWidget
extends DrawableHelper
implements Drawable, Element
- Mappings:
Namespace Name official eop
intermediary net/minecraft/class_508
named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<RecipeAlternativesWidget.AlternativeButtonWidget>
(package private) static final Identifier
private int
private int
(package private) MinecraftClient
private static final int
private static final int
private static final float
(package private) boolean
private RecipeResultCollection
(package private) float
private boolean
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
changeFocus
(boolean lookForwards) Changes the focusing element by cycling to the next/previous element.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
(MatrixStack matrices, int mouseX, int mouseY, float delta) private void
renderGrid
(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, int int7) void
setVisible
(boolean visible) void
showAlternativesForResult
(MinecraftClient client, RecipeResultCollection results, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta) Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Leop;a:Labb;
intermediary field_3109
Lnet/minecraft/class_508;field_3109:Lnet/minecraft/class_2960;
named BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32406
private static final int field_32406- See Also:
- Mappings:
Namespace Name Mixin selector official b
Leop;b:I
intermediary field_32406
Lnet/minecraft/class_508;field_32406:I
named field_32406
Lnet/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 c
Leop;c:I
intermediary field_32407
Lnet/minecraft/class_508;field_32407:I
named field_32407
Lnet/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 d
Leop;d:F
intermediary field_33739
Lnet/minecraft/class_508;field_33739:F
named field_33739
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_33739:F
-
alternativeButtons
- Mappings:
Namespace Name Mixin selector official e
Leop;e:Ljava/util/List;
intermediary field_3106
Lnet/minecraft/class_508;field_3106:Ljava/util/List;
named alternativeButtons
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector official f
Leop;f:Z
intermediary field_3107
Lnet/minecraft/class_508;field_3107:Z
named visible
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Z
-
buttonX
private int buttonX- Mappings:
Namespace Name Mixin selector official j
Leop;j:I
intermediary field_3105
Lnet/minecraft/class_508;field_3105:I
named buttonX
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:I
-
buttonY
private int buttonY- Mappings:
Namespace Name Mixin selector official k
Leop;k:I
intermediary field_3103
Lnet/minecraft/class_508;field_3103:I
named buttonY
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:I
-
client
MinecraftClient client- Mappings:
Namespace Name Mixin selector official l
Leop;l:Lefu;
intermediary field_3108
Lnet/minecraft/class_508;field_3108:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;client:Lnet/minecraft/client/MinecraftClient;
-
resultCollection
- Mappings:
Namespace Name Mixin selector official m
Leop;m:Leou;
intermediary field_3111
Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;
named resultCollection
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
lastClickedRecipe
- Mappings:
Namespace Name Mixin selector official n
Leop;n:Lcdp;
intermediary field_3104
Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_1860;
named lastClickedRecipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/Recipe;
-
time
float time- Mappings:
Namespace Name Mixin selector official o
Leop;o:F
intermediary field_3110
Lnet/minecraft/class_508;field_3110:F
named time
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;time:F
-
furnace
boolean furnace- Mappings:
Namespace Name Mixin selector official p
Leop;p:Z
intermediary field_3112
Lnet/minecraft/class_508;field_3112:Z
named furnace
Lnet/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 a
Leop;a(Lefu;Leou;IIIIF)V
intermediary method_2617
Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_310;Lnet/minecraft/class_516;IIIIF)V
named showAlternativesForResult
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;IIIIF)V
-
changeFocus
public boolean changeFocus(boolean lookForwards) Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- Specified by:
changeFocus
in interfaceElement
- Parameters:
lookForwards
-true
to cycle forwards, otherwise cycle backwards- Returns:
true
to indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official b
Leir;b(Z)Z
intermediary method_25407
Lnet/minecraft/class_364;method_25407(Z)Z
named changeFocus
Lnet/minecraft/client/gui/Element;changeFocus(Z)Z
-
getResults
- Mappings:
Namespace Name Mixin selector official a
Leop;a()Leou;
intermediary method_2614
Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;
named getResults
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
getLastClickedRecipe
- Mappings:
Namespace Name Mixin selector official b
Leop;b()Lcdp;
intermediary method_2615
Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_1860;
named getLastClickedRecipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/Recipe;
-
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 official a
Leir;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/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:
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 official a_
Leir;a_(DD)Z
intermediary method_25405
Lnet/minecraft/class_364;method_25405(DD)Z
named isMouseOver
Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
render
- Specified by:
render
in interfaceDrawable
- Mappings:
Namespace Name Mixin selector official a
Leio;a(Leaq;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
renderGrid
private void renderGrid(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, int int7) - Mappings:
Namespace Name Mixin selector official c
Leop;c(Leaq;IIIIII)V
intermediary method_2618
Lnet/minecraft/class_508;method_2618(Lnet/minecraft/class_4587;IIIIII)V
named renderGrid
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;renderGrid(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
-
setVisible
public void setVisible(boolean visible) - Mappings:
Namespace Name Mixin selector official a
Leop;a(Z)V
intermediary method_2613
Lnet/minecraft/class_508;method_2613(Z)V
named setVisible
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)V
-
isVisible
public boolean isVisible()- Mappings:
Namespace Name Mixin selector official c
Leop;c()Z
intermediary method_2616
Lnet/minecraft/class_508;method_2616()Z
named isVisible
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Z
-