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 eaaintermediary net/minecraft/class_514named net/minecraft/client/gui/screen/recipebook/AnimatedResultButton
-
Field Summary
Fields Modifier and Type Field Description private static IdentifierBACKGROUND_TEXTUREprivate floatbounceprivate AbstractRecipeScreenHandler<?>craftingScreenHandlerprivate intcurrentResultIndexprivate static TextMORE_RECIPES_TEXTprivate RecipeBookrecipeBookprivate RecipeResultCollectionresultsprivate floattimeFields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yFields 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()RecipeResultCollectiongetResultCollection()private List<Recipe<?>>getResults()List<Text>getTooltip(Screen screen)intgetWidth()booleanhasResults()protected booleanisValidClickButton(int button)voidrenderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)voidsetPos(int x, int y)voidshowResultCollection(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, setWidthMethods 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, setZOffsetMethods 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, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLeaa;a:Lwl;intermediary field_3143Lnet/minecraft/class_514;field_3143:Lnet/minecraft/class_2960;named BACKGROUND_TEXTURELnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
MORE_RECIPES_TEXT
- Mappings:
Namespace Name Mixin selector official bLeaa;b:Loj;intermediary field_26595Lnet/minecraft/class_514;field_26595:Lnet/minecraft/class_2561;named MORE_RECIPES_TEXTLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;MORE_RECIPES_TEXT:Lnet/minecraft/text/Text;
-
craftingScreenHandler
- Mappings:
Namespace Name Mixin selector official cLeaa;c:Lblu;intermediary field_3137Lnet/minecraft/class_514;field_3137:Lnet/minecraft/class_1729;named craftingScreenHandlerLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;craftingScreenHandler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
-
recipeBook
- Mappings:
Namespace Name Mixin selector official dLeaa;d:Laev;intermediary field_3138Lnet/minecraft/class_514;field_3138:Lnet/minecraft/class_3439;named recipeBookLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;recipeBook:Lnet/minecraft/recipe/book/RecipeBook;
-
results
- Mappings:
Namespace Name Mixin selector official eLeaa;e:Leab;intermediary field_3142Lnet/minecraft/class_514;field_3142:Lnet/minecraft/class_516;named resultsLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;results:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
time
private float time- Mappings:
Namespace Name Mixin selector official sLeaa;s:Fintermediary field_3140Lnet/minecraft/class_514;field_3140:Fnamed timeLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;time:F
-
bounce
private float bounce- Mappings:
Namespace Name Mixin selector official tLeaa;t:Fintermediary field_3139Lnet/minecraft/class_514;field_3139:Fnamed bounceLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;bounce:F
-
currentResultIndex
private int currentResultIndex- Mappings:
Namespace Name Mixin selector official uLeaa;u:Iintermediary field_3141Lnet/minecraft/class_514;field_3141:Inamed currentResultIndexLnet/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 aLeaa;a(Leab;Ldzy;)Vintermediary method_2640Lnet/minecraft/class_514;method_2640(Lnet/minecraft/class_516;Lnet/minecraft/class_513;)Vnamed showResultCollectionLnet/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 aLeaa;a()Leab;intermediary method_2645Lnet/minecraft/class_514;method_2645()Lnet/minecraft/class_516;named getResultCollectionLnet/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 aLeaa;a(II)Vintermediary method_2641Lnet/minecraft/class_514;method_2641(II)Vnamed setPosLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;setPos(II)V
-
renderButton
- Overrides:
renderButtonin classAbstractButtonWidget- Mappings:
Namespace Name Mixin selector official bLdtm;b(Ldnl;IIF)Vintermediary method_25359Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
getResults
- Mappings:
Namespace Name Mixin selector official kLeaa;k()Ljava/util/List;intermediary method_2639Lnet/minecraft/class_514;method_2639()Ljava/util/List;named getResultsLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResults()Ljava/util/List;
-
hasResults
public boolean hasResults()- Mappings:
Namespace Name Mixin selector official bLeaa;b()Zintermediary method_2642Lnet/minecraft/class_514;method_2642()Znamed hasResultsLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;hasResults()Z
-
currentRecipe
- Mappings:
Namespace Name Mixin selector official dLeaa;d()Lbri;intermediary method_2643Lnet/minecraft/class_514;method_2643()Lnet/minecraft/class_1860;named currentRecipeLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentRecipe()Lnet/minecraft/recipe/Recipe;
-
getTooltip
- Mappings:
Namespace Name Mixin selector official aLeaa;a(Ldwy;)Ljava/util/List;intermediary method_2644Lnet/minecraft/class_514;method_2644(Lnet/minecraft/class_437;)Ljava/util/List;named getTooltipLnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getTooltip(Lnet/minecraft/client/gui/screen/Screen;)Ljava/util/List;
-
getWidth
public int getWidth()- Overrides:
getWidthin classAbstractButtonWidget- Mappings:
Namespace Name Mixin selector official hLdtm;h()Iintermediary method_25368Lnet/minecraft/class_339;method_25368()Inamed getWidthLnet/minecraft/client/gui/widget/AbstractButtonWidget;getWidth()I
-
isValidClickButton
protected boolean isValidClickButton(int button)- Overrides:
isValidClickButtonin classAbstractButtonWidget- Mappings:
Namespace Name Mixin selector official aLdtm;a(I)Zintermediary method_25351Lnet/minecraft/class_339;method_25351(I)Znamed isValidClickButtonLnet/minecraft/client/gui/widget/AbstractButtonWidget;isValidClickButton(I)Z
-