Class ImageWidget.Texture
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.ImageWidget
net.minecraft.client.gui.components.ImageWidget.Texture
- All Implemented Interfaces:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
- Enclosing class:
ImageWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.components.ImageWidget
ImageWidget.Sprite, ImageWidget.Texture
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final int
private final int
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
ConstructorDescriptionTexture
(int p_294324_, int p_296206_, int p_294604_, int p_294607_, ResourceLocation p_294536_, int p_295196_, int p_294112_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
renderWidget
(GuiGraphics p_294145_, int p_294755_, int p_294985_, float p_294245_) Methods inherited from class net.minecraft.client.gui.components.ImageWidget
isActive, nextFocusPath, playDownSound, sprite, texture, updateWidgetNarration
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, 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
-
Field Details
-
texture
-
textureWidth
private final int textureWidth -
textureHeight
private final int textureHeight
-
-
Constructor Details
-
Texture
public Texture(int p_294324_, int p_296206_, int p_294604_, int p_294607_, ResourceLocation p_294536_, int p_295196_, int p_294112_)
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classAbstractWidget
-