Class OverlayRecipeComponent.OverlayCraftingRecipeButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent.OverlayRecipeButton
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent.OverlayCraftingRecipeButton
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Enclosing class:
OverlayRecipeComponent
private class OverlayRecipeComponent.OverlayCraftingRecipeButton
extends OverlayRecipeComponent.OverlayRecipeButton
-
Nested Class Summary
Nested classes/interfaces inherited from class OverlayRecipeComponent.OverlayRecipeButton
OverlayRecipeComponent.OverlayRecipeButton.PosNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final Identifierprivate static final intprivate static final intprivate static final Identifierprivate static final IdentifierFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionOverlayCraftingRecipeButton(int x, int y, RecipeDisplayId id, RecipeDisplay recipe, ContextMap context, boolean isCraftable) -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<OverlayRecipeComponent.OverlayRecipeButton.Pos> calculateIngredientsPositions(RecipeDisplay recipe, ContextMap context) protected IdentifiergetSprite(boolean isCraftable) Methods inherited from class OverlayRecipeComponent.OverlayRecipeButton
createGridPos, renderWidget, updateWidgetNarrationMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playButtonClickSound, playDownSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
ENABLED_SPRITE
-
HIGHLIGHTED_ENABLED_SPRITE
-
DISABLED_SPRITE
-
HIGHLIGHTED_DISABLED_SPRITE
-
GRID_WIDTH
private static final int GRID_WIDTH- See Also:
-
GRID_HEIGHT
private static final int GRID_HEIGHT- See Also:
-
-
Constructor Details
-
OverlayCraftingRecipeButton
public OverlayCraftingRecipeButton(int x, int y, RecipeDisplayId id, RecipeDisplay recipe, ContextMap context, boolean isCraftable)
-
-
Method Details
-
calculateIngredientsPositions
private static List<OverlayRecipeComponent.OverlayRecipeButton.Pos> calculateIngredientsPositions(RecipeDisplay recipe, ContextMap context) -
getSprite
- Specified by:
getSpritein classOverlayRecipeComponent.OverlayRecipeButton
-