public class RecipeWidget extends Widget
| Modifier and Type | Field and Description |
|---|---|
private float |
animationTime |
private RecipeBook |
book |
private int |
currentIndex |
private RecipeBookContainer<?> |
field_203401_p |
private RecipeList |
list |
private static ResourceLocation |
RECIPE_BOOK |
private float |
time |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| Constructor and Description |
|---|
RecipeWidget() |
| Modifier and Type | Method and Description |
|---|---|
void |
func_203400_a(RecipeList p_203400_1_,
RecipeBookPage p_203400_2_) |
RecipeList |
getList() |
private java.util.List<IRecipe<?>> |
getOrderedRecipes() |
IRecipe<?> |
getRecipe() |
java.util.List<java.lang.String> |
getToolTipText(Screen p_191772_1_) |
int |
getWidth() |
boolean |
isOnlyOption() |
protected boolean |
isValidClickButton(int p_isValidClickButton_1_) |
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
void |
setPosition(int p_191770_1_,
int p_191770_2_) |
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getYImage, isFocused, isHovered, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseMoved, mouseScrolledprivate static final ResourceLocation RECIPE_BOOK
private RecipeBookContainer<?> field_203401_p
private RecipeBook book
private RecipeList list
private float time
private float animationTime
private int currentIndex
public void func_203400_a(RecipeList p_203400_1_, RecipeBookPage p_203400_2_)
public RecipeList getList()
public void setPosition(int p_191770_1_,
int p_191770_2_)
public void renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_)
renderButton in class Widgetprivate java.util.List<IRecipe<?>> getOrderedRecipes()
public boolean isOnlyOption()
public IRecipe<?> getRecipe()
public java.util.List<java.lang.String> getToolTipText(Screen p_191772_1_)
protected boolean isValidClickButton(int p_isValidClickButton_1_)
isValidClickButton in class Widget