Class RecipeBookTabButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.StateSwitchingButton
net.minecraft.client.gui.screens.recipebook.RecipeBookTabButton
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private float
private final RecipeBookCategories
private static final WidgetSprites
Fields inherited from class net.minecraft.client.gui.components.StateSwitchingButton
isStateTriggered, sprites
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
renderIcon
(GuiGraphics p_281802_, ItemRenderer p_282499_) void
renderWidget
(GuiGraphics p_283195_, int p_283508_, int p_281788_, float p_283269_) void
startAnimation
(Minecraft p_100452_) boolean
updateVisibility
(ClientRecipeBook p_100450_) Methods inherited from class net.minecraft.client.gui.components.StateSwitchingButton
initTextureValues, isStateTriggered, setStateTriggered, updateWidgetNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, 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, wrapDefaultNarrationMessage
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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
SPRITES
-
category
-
ANIMATION_TIME
private static final float ANIMATION_TIME- See Also:
-
animationTime
private float animationTime
-
-
Constructor Details
-
RecipeBookTabButton
-
-
Method Details
-
startAnimation
-
renderWidget
- Overrides:
renderWidget
in classStateSwitchingButton
-
renderIcon
-
getCategory
-
updateVisibility
-