Class ImageWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.ImageWidget
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
- Direct Known Subclasses:
ImageWidget.Sprite
,ImageWidget.Texture
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
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 TypeMethodDescriptionboolean
isActive()
nextFocusPath
(FocusNavigationEvent p_298071_) void
playDownSound
(SoundManager p_297959_) static ImageWidget
sprite
(int p_299633_, int p_299377_, ResourceLocation p_298615_) static ImageWidget
texture
(int p_298293_, int p_301221_, ResourceLocation p_299739_, int p_297694_, int p_300459_) protected void
updateWidgetNarration
(NarrationElementOutput p_275454_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderScrollingString, renderWidget, setAlpha, setFGColor, setFocused, setHeight, setMessage, 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
-
Constructor Details
-
ImageWidget
ImageWidget(int p_275550_, int p_275723_, int p_301266_, int p_297426_)
-
-
Method Details
-
texture
public static ImageWidget texture(int p_298293_, int p_301221_, ResourceLocation p_299739_, int p_297694_, int p_300459_) -
sprite
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceNarratableEntry
- Overrides:
isActive
in classAbstractWidget
-