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
,IAbstractWidgetExtension
- 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_296129_) void
playDownSound
(SoundManager p_295108_) static ImageWidget
sprite
(int p_295244_, int p_296002_, ResourceLocation p_295131_) static ImageWidget
texture
(int p_294719_, int p_294578_, ResourceLocation p_295560_, int p_295321_, int p_296474_) 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.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Constructor Details
-
ImageWidget
ImageWidget(int p_275421_, int p_275294_, int p_275403_, int p_275631_)
-
-
Method Details
-
texture
public static ImageWidget texture(int p_294719_, int p_294578_, ResourceLocation p_295560_, int p_295321_, int p_296474_) -
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
-