Class RecipeOverlayGui.RecipeButtonWidget
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.widget.Widget
net.minecraft.client.gui.recipebook.RecipeOverlayGui.RecipeButtonWidget
- All Implemented Interfaces:
IGuiEventListener
,IRenderable
,IRecipePlacer<Ingredient>
- Direct Known Subclasses:
RecipeOverlayGui.FurnaceRecipeButtonWidget
- Enclosing class:
- RecipeOverlayGui
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<RecipeOverlayGui.RecipeButtonWidget.Child>
private final boolean
private final IRecipe<?>
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
ConstructorDescriptionRecipeButtonWidget
(int p_i47594_2_, int p_i47594_3_, IRecipe<?> p_i47594_4_, boolean p_i47594_5_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemToSlot
(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) protected void
calculateIngredientsPositions
(IRecipe<?> p_201505_1_) void
renderButton
(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) Methods inherited from class net.minecraft.client.gui.widget.Widget
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, 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
Methods inherited from interface net.minecraft.item.crafting.IRecipePlacer
placeRecipe
-
Field Details
-
recipe
-
isCraftable
private final boolean isCraftable -
ingredientPos
-
-
Constructor Details
-
RecipeButtonWidget
public RecipeButtonWidget(int p_i47594_2_, int p_i47594_3_, IRecipe<?> p_i47594_4_, boolean p_i47594_5_)
-
-
Method Details
-
calculateIngredientsPositions
-
addItemToSlot
public void addItemToSlot(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) - Specified by:
addItemToSlot
in interfaceIRecipePlacer<Ingredient>
-
renderButton
public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_) - Overrides:
renderButton
in classWidget
-