@Environment(value=CLIENT) public class AnimatedResultButton extends AbstractButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private static Identifier |
BG_TEX |
private float |
bounce |
private AbstractRecipeScreenHandler<?> |
craftingScreenHandler |
private int |
currentResultIndex |
private RecipeBook |
recipeBook |
private RecipeResultCollection |
results |
private float |
time |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AnimatedResultButton() |
| Modifier and Type | Method and 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 matrixStack,
int int2,
int int3,
float float2) |
void |
setPos(int x,
int y) |
void |
showResultCollection(RecipeResultCollection recipeResultCollection,
RecipeBookResults recipeBookResults) |
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getYImage, isFocused, isHovered, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseMoved, mouseScrolledprivate static final Identifier BG_TEX
private AbstractRecipeScreenHandler<?> craftingScreenHandler
private RecipeBook recipeBook
private RecipeResultCollection results
private float time
private float bounce
private int currentResultIndex
public void showResultCollection(RecipeResultCollection recipeResultCollection, RecipeBookResults recipeBookResults)
public RecipeResultCollection getResultCollection()
public void setPos(int x,
int y)
public void renderButton(MatrixStack matrixStack, int int2, int int3, float float2)
renderButton in class AbstractButtonWidgetpublic boolean hasResults()
public Recipe<?> currentRecipe()
public int getWidth()
getWidth in class AbstractButtonWidgetprotected boolean isValidClickButton(int button)
isValidClickButton in class AbstractButtonWidget