Class RecipeBookTabButton
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.StateSwitchingButton
net.minecraft.client.gui.screens.recipebook.RecipeBookTabButton
- All Implemented Interfaces:
GuiEventListener,Widget,NarratableEntry,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate floatprivate final RecipeBookCategoriesFields inherited from class net.minecraft.client.gui.components.StateSwitchingButton
isStateTriggered, resourceLocation, xDiffTex, xTexStart, yDiffTex, yTexStartFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderButton(PoseStack p_100457_, int p_100458_, int p_100459_, float p_100460_) private voidrenderIcon(ItemRenderer p_100454_) voidstartAnimation(Minecraft p_100452_) booleanupdateVisibility(ClientRecipeBook p_100450_) Methods inherited from class net.minecraft.client.gui.components.StateSwitchingButton
initTextureValues, isStateTriggered, setPosition, setStateTriggered, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessageMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
category
-
ANIMATION_TIME
private static final float ANIMATION_TIME- See Also:
-
animationTime
private float animationTime
-
-
Constructor Details
-
RecipeBookTabButton
-
-
Method Details
-
startAnimation
-
renderButton
- Overrides:
renderButtonin classStateSwitchingButton
-
renderIcon
-
getCategory
-
updateVisibility
-