public class GuiButtonRecipe extends GuiButton
| Modifier and Type | Field and Description |
|---|---|
private float |
animationTime |
private RecipeBook |
book |
private int |
currentIndex |
private RecipeList |
list |
private static ResourceLocation |
RECIPE_BOOK |
private float |
time |
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, x, yICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiButtonRecipe() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawButton(Minecraft mc,
int mouseX,
int mouseY,
float partialTicks) |
int |
getButtonWidth() |
RecipeList |
getList() |
private java.util.List<IRecipe> |
getOrderedRecipes() |
IRecipe |
getRecipe() |
java.util.List<java.lang.String> |
getToolTipText(GuiScreen p_191772_1_) |
void |
init(RecipeList p_193928_1_,
RecipeBookPage p_193928_2_,
RecipeBook p_193928_3_) |
boolean |
isOnlyOption() |
void |
setPosition(int p_191770_1_,
int p_191770_2_) |
drawButtonForegroundLayer, getHoverState, isMouseOver, mouseDragged, mousePressed, mouseReleased, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate static final ResourceLocation RECIPE_BOOK
private RecipeBook book
private RecipeList list
private float time
private float animationTime
private int currentIndex
public void init(RecipeList p_193928_1_, RecipeBookPage p_193928_2_, RecipeBook p_193928_3_)
public RecipeList getList()
public void setPosition(int p_191770_1_,
int p_191770_2_)
public void drawButton(Minecraft mc, int mouseX, int mouseY, float partialTicks)
drawButton in class GuiButtonprivate java.util.List<IRecipe> getOrderedRecipes()
public boolean isOnlyOption()
public IRecipe getRecipe()
public java.util.List<java.lang.String> getToolTipText(GuiScreen p_191772_1_)
public int getButtonWidth()
getButtonWidth in class GuiButton