Class RecipeButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.recipebook.RecipeButton
- All Implemented Interfaces:
- GuiEventListener,- Renderable,- TabOrderedElement,- LayoutElement,- NarratableEntry,- NarrationSupplier,- IAbstractWidgetExtension
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntryNarratableEntry.NarrationPriority
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final floatprivate floatprivate static final intprivate RecipeBookprivate RecipeCollectionprivate intprivate RecipeBookMenu<?>private static final Componentprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationprivate static final ResourceLocationstatic final intprivate floatFields inherited from class net.minecraft.client.gui.components.AbstractWidgetactive, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate List<RecipeHolder<?>>RecipeHolder<?>intgetWidth()voidinit(RecipeCollection p_100480_, RecipeBookPage p_100481_) booleanprotected booleanisValidClickButton(int p_100473_) voidrenderWidget(GuiGraphics p_281385_, int p_282779_, int p_282744_, float p_282439_) voidupdateWidgetNarration(NarrationElementOutput p_170060_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidgetclearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenercharTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtensiononClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElementsetPosition
- 
Field Details- 
SLOT_MANY_CRAFTABLE_SPRITE
- 
SLOT_CRAFTABLE_SPRITE
- 
SLOT_MANY_UNCRAFTABLE_SPRITE
- 
SLOT_UNCRAFTABLE_SPRITE
- 
ANIMATION_TIMEprivate static final float ANIMATION_TIME- See Also:
 
- 
BACKGROUND_SIZEprivate static final int BACKGROUND_SIZE- See Also:
 
- 
TICKS_TO_SWAPpublic static final int TICKS_TO_SWAP- See Also:
 
- 
MORE_RECIPES_TOOLTIP
- 
book
- 
collection
- 
timeprivate float time
- 
animationTimeprivate float animationTime
- 
currentIndexprivate int currentIndex
 
- 
- 
Constructor Details- 
RecipeButtonpublic RecipeButton()
 
- 
- 
Method Details- 
init
- 
getCollection
- 
renderWidget- Specified by:
- renderWidgetin class- AbstractWidget
 
- 
getOrderedRecipes
- 
isOnlyOptionpublic boolean isOnlyOption()
- 
getRecipe
- 
getTooltipText
- 
updateWidgetNarration- Specified by:
- updateWidgetNarrationin class- AbstractWidget
 
- 
getWidthpublic int getWidth()- Specified by:
- getWidthin interface- LayoutElement
- Overrides:
- getWidthin class- AbstractWidget
 
- 
isValidClickButtonprotected boolean isValidClickButton(int p_100473_) - Overrides:
- isValidClickButtonin class- AbstractWidget
 
 
-