@Environment(value=CLIENT) public class AnimatedResultButton extends AbstractButtonWidget
Modifier and Type | Field and Description |
---|---|
private static Identifier |
BACKGROUND_TEXTURE |
private float |
bounce |
private AbstractRecipeScreenHandler<?> |
craftingScreenHandler |
private int |
currentResultIndex |
private static Text |
field_26595 |
private RecipeBook |
recipeBook |
private RecipeResultCollection |
results |
private float |
time |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_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 matrices,
int mouseX,
int mouseY,
float delta) |
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, setWidth
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
private static final Identifier BACKGROUND_TEXTURE
private static final Text field_26595
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 matrices, int mouseX, int mouseY, float delta)
renderButton
in class AbstractButtonWidget
public boolean hasResults()
public Recipe<?> currentRecipe()
public int getWidth()
getWidth
in class AbstractButtonWidget
protected boolean isValidClickButton(int button)
isValidClickButton
in class AbstractButtonWidget