@Environment(value=CLIENT) class RecipeAlternativesWidget.AlternativeButtonWidget extends AbstractButtonWidget implements RecipeGridAligner<Ingredient>
| Modifier and Type | Class and Description |
|---|---|
class |
RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isCraftable |
private Recipe<?> |
recipe |
protected List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> |
slots |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AlternativeButtonWidget(int x,
int y,
Recipe<?> recipe,
boolean isCraftable) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptAlignedInput(Iterator<Ingredient> inputs,
int slot,
int amount,
int gridX,
int gridY) |
protected void |
alignRecipe(Recipe<?> recipe) |
void |
renderButton(int mouseX,
int mouseY,
float delta) |
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalignRecipeToGridcharTyped, keyPressed, keyReleased, mouseMoved, mouseScrolledprivate final Recipe<?> recipe
private final boolean isCraftable
protected final List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> slots
public AlternativeButtonWidget(int x,
int y,
Recipe<?> recipe,
boolean isCraftable)
protected void alignRecipe(Recipe<?> recipe)
public void acceptAlignedInput(Iterator<Ingredient> inputs, int slot, int amount, int gridX, int gridY)
acceptAlignedInput in interface RecipeGridAligner<Ingredient>public void renderButton(int mouseX,
int mouseY,
float delta)
renderButton in class AbstractButtonWidget