Class RecipeTabToggleWidget
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.widget.Widget
-
- net.minecraft.client.gui.widget.ToggleWidget
-
- net.minecraft.client.gui.recipebook.RecipeTabToggleWidget
-
- All Implemented Interfaces:
IGuiEventListener
,IRenderable
public class RecipeTabToggleWidget extends ToggleWidget
-
-
Field Summary
Fields Modifier and Type Field Description private float
animationTime
private RecipeBookCategories
category
-
Fields inherited from class net.minecraft.client.gui.widget.ToggleWidget
isStateTriggered, resourceLocation, xDiffTex, xTexStart, yDiffTex, yTexStart
-
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
Constructors Constructor Description RecipeTabToggleWidget(RecipeBookCategories p_i51075_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecipeBookCategories
getCategory()
void
renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
private void
renderIcon(ItemRenderer p_193920_1_)
void
startAnimation(Minecraft p_193918_1_)
boolean
updateVisibility(ClientRecipeBook p_199500_1_)
-
Methods inherited from class net.minecraft.client.gui.widget.ToggleWidget
initTextureValues, isStateTriggered, setPosition, setStateTriggered
-
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
-
-
-
-
Field Detail
-
category
private final RecipeBookCategories category
-
animationTime
private float animationTime
-
-
Constructor Detail
-
RecipeTabToggleWidget
public RecipeTabToggleWidget(RecipeBookCategories p_i51075_1_)
-
-
Method Detail
-
startAnimation
public void startAnimation(Minecraft p_193918_1_)
-
renderButton
public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
- Overrides:
renderButton
in classToggleWidget
-
renderIcon
private void renderIcon(ItemRenderer p_193920_1_)
-
getCategory
public RecipeBookCategories getCategory()
-
updateVisibility
public boolean updateVisibility(ClientRecipeBook p_199500_1_)
-
-