Class AnimatedResultButton
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.screen.recipebook.AnimatedResultButton
@Environment(CLIENT) public class AnimatedResultButton extends AbstractButtonWidget
- Mappings:
Namespace Name official dyg
intermediary net/minecraft/class_514
named net/minecraft/client/gui/screen/recipebook/AnimatedResultButton
-
Field Summary
Fields Modifier and Type Field Description private static Identifier
BACKGROUND_TEXTURE
private float
bounce
private AbstractRecipeScreenHandler<?>
craftingScreenHandler
private int
currentResultIndex
private static Text
MORE_RECIPES_TEXT
private RecipeBook
recipeBook
private RecipeResultCollection
results
private float
time
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description AnimatedResultButton()
-
Method Summary
Modifier and Type Method Description Recipe<?>
currentRecipe()
RecipeResultCollection
getResultCollection()
private List<Recipe<?>>
getResults()
List<Text>
getTooltip(Screen screen)
int
getWidth()
boolean
hasResults()
protected boolean
isValidClickButton(int button)
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
setPos(int x, int y)
void
showResultCollection(RecipeResultCollection recipeResultCollection, RecipeBookResults recipeBookResults)
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getYImage, isFocused, isHovered, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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, mouseMoved, mouseScrolled
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Ldyg;a:Lwb;
intermediary field_3143
Lnet/minecraft/class_514;field_3143:Lnet/minecraft/class_2960;
named BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
MORE_RECIPES_TEXT
- Mappings:
Namespace Name Mixin selector official b
Ldyg;b:Loi;
intermediary field_26595
Lnet/minecraft/class_514;field_26595:Lnet/minecraft/class_2561;
named MORE_RECIPES_TEXT
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;MORE_RECIPES_TEXT:Lnet/minecraft/text/Text;
-
craftingScreenHandler
- Mappings:
Namespace Name Mixin selector official c
Ldyg;c:Lbkz;
intermediary field_3137
Lnet/minecraft/class_514;field_3137:Lnet/minecraft/class_1729;
named craftingScreenHandler
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;craftingScreenHandler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
-
recipeBook
- Mappings:
Namespace Name Mixin selector official d
Ldyg;d:Laej;
intermediary field_3138
Lnet/minecraft/class_514;field_3138:Lnet/minecraft/class_3439;
named recipeBook
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;recipeBook:Lnet/minecraft/recipe/book/RecipeBook;
-
results
- Mappings:
Namespace Name Mixin selector official e
Ldyg;e:Ldyh;
intermediary field_3142
Lnet/minecraft/class_514;field_3142:Lnet/minecraft/class_516;
named results
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;results:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
time
private float time- Mappings:
Namespace Name Mixin selector official s
Ldyg;s:F
intermediary field_3140
Lnet/minecraft/class_514;field_3140:F
named time
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;time:F
-
bounce
private float bounce- Mappings:
Namespace Name Mixin selector official t
Ldyg;t:F
intermediary field_3139
Lnet/minecraft/class_514;field_3139:F
named bounce
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;bounce:F
-
currentResultIndex
private int currentResultIndex- Mappings:
Namespace Name Mixin selector official u
Ldyg;u:I
intermediary field_3141
Lnet/minecraft/class_514;field_3141:I
named currentResultIndex
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentResultIndex:I
-
-
Constructor Details
-
AnimatedResultButton
public AnimatedResultButton()
-
-
Method Details
-
showResultCollection
public void showResultCollection(RecipeResultCollection recipeResultCollection, RecipeBookResults recipeBookResults)- Mappings:
Namespace Name Mixin selector official a
Ldyg;a(Ldyh;Ldye;)V
intermediary method_2640
Lnet/minecraft/class_514;method_2640(Lnet/minecraft/class_516;Lnet/minecraft/class_513;)V
named showResultCollection
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;showResultCollection(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/client/gui/screen/recipebook/RecipeBookResults;)V
-
getResultCollection
- Mappings:
Namespace Name Mixin selector official a
Ldyg;a()Ldyh;
intermediary method_2645
Lnet/minecraft/class_514;method_2645()Lnet/minecraft/class_516;
named getResultCollection
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResultCollection()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
setPos
public void setPos(int x, int y)- Mappings:
Namespace Name Mixin selector official a
Ldyg;a(II)V
intermediary method_2641
Lnet/minecraft/class_514;method_2641(II)V
named setPos
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;setPos(II)V
-
renderButton
- Overrides:
renderButton
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
getResults
- Mappings:
Namespace Name Mixin selector official k
Ldyg;k()Ljava/util/List;
intermediary method_2639
Lnet/minecraft/class_514;method_2639()Ljava/util/List;
named getResults
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResults()Ljava/util/List;
-
hasResults
public boolean hasResults()- Mappings:
Namespace Name Mixin selector official b
Ldyg;b()Z
intermediary method_2642
Lnet/minecraft/class_514;method_2642()Z
named hasResults
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;hasResults()Z
-
currentRecipe
- Mappings:
Namespace Name Mixin selector official d
Ldyg;d()Lbqn;
intermediary method_2643
Lnet/minecraft/class_514;method_2643()Lnet/minecraft/class_1860;
named currentRecipe
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentRecipe()Lnet/minecraft/recipe/Recipe;
-
getTooltip
- Mappings:
Namespace Name Mixin selector official a
Ldyg;a(Ldve;)Ljava/util/List;
intermediary method_2644
Lnet/minecraft/class_514;method_2644(Lnet/minecraft/class_437;)Ljava/util/List;
named getTooltip
Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getTooltip(Lnet/minecraft/client/gui/screen/Screen;)Ljava/util/List;
-
getWidth
public int getWidth()- Overrides:
getWidth
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official h
Ldrs;h()I
intermediary method_25368
Lnet/minecraft/class_339;method_25368()I
named getWidth
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;getWidth()I
-
isValidClickButton
protected boolean isValidClickButton(int button)- Overrides:
isValidClickButton
in classAbstractButtonWidget
- Mappings:
Namespace Name Mixin selector official a
Ldrs;a(I)Z
intermediary method_25351
Lnet/minecraft/class_339;method_25351(I)Z
named isValidClickButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;isValidClickButton(I)Z
-