class RecipeOverlayGui.RecipeButtonWidget extends Widget implements IRecipePlacer<Ingredient>
Modifier and Type | Class and Description |
---|---|
class |
RecipeOverlayGui.RecipeButtonWidget.Child |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<RecipeOverlayGui.RecipeButtonWidget.Child> |
field_201506_o |
private boolean |
isCraftable |
private IRecipe<?> |
recipe |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
RecipeButtonWidget(int p_i47594_2_,
int p_i47594_3_,
IRecipe<?> p_i47594_4_,
boolean p_i47594_5_) |
Modifier and Type | Method and Description |
---|---|
protected void |
func_201505_a(IRecipe<?> p_201505_1_) |
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
void |
setSlotContents(java.util.Iterator<Ingredient> ingredients,
int slotIn,
int maxAmount,
int y,
int x) |
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
placeRecipe
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
private final IRecipe<?> recipe
private final boolean isCraftable
protected final java.util.List<RecipeOverlayGui.RecipeButtonWidget.Child> field_201506_o
public RecipeButtonWidget(int p_i47594_2_, int p_i47594_3_, IRecipe<?> p_i47594_4_, boolean p_i47594_5_)
protected void func_201505_a(IRecipe<?> p_201505_1_)
public void setSlotContents(java.util.Iterator<Ingredient> ingredients, int slotIn, int maxAmount, int y, int x)
setSlotContents
in interface IRecipePlacer<Ingredient>
public void renderButton(int p_renderButton_1_, int p_renderButton_2_, float p_renderButton_3_)
renderButton
in class Widget