Class RecipeWidget
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.widget.Widget
net.minecraft.client.gui.recipebook.RecipeWidget
- All Implemented Interfaces:
IGuiEventListener
,IRenderable
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private RecipeBook
private RecipeList
private int
private RecipeBookContainer<?>
private static final ITextComponent
private static final ResourceLocation
private float
Fields inherited from class net.minecraft.client.gui.widget.Widget
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIRecipe<?>
getTooltipText
(Screen p_191772_1_) int
getWidth()
void
init
(RecipeList p_203400_1_, RecipeBookPage p_203400_2_) boolean
protected boolean
isValidClickButton
(int p_230987_1_) void
renderButton
(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) void
setPosition
(int p_191770_1_, int p_191770_2_) Methods inherited from class net.minecraft.client.gui.widget.Widget
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getYImage, isFocused, isHovered, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
RECIPE_BOOK_LOCATION
-
MORE_RECIPES_TOOLTIP
-
book
-
collection
-
time
private float time -
animationTime
private float animationTime -
currentIndex
private int currentIndex
-
-
Constructor Details
-
RecipeWidget
public RecipeWidget()
-
-
Method Details
-
init
-
getCollection
-
setPosition
public void setPosition(int p_191770_1_, int p_191770_2_) -
renderButton
public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) - Overrides:
renderButton
in classWidget
-
getOrderedRecipes
-
isOnlyOption
public boolean isOnlyOption() -
getRecipe
-
getTooltipText
-
getWidth
public int getWidth() -
isValidClickButton
protected boolean isValidClickButton(int p_230987_1_) - Overrides:
isValidClickButton
in classWidget
-