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
- Enclosing class:
ImageWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionTexture(int x, int y, int width, int height, Identifier texture, int textureWidth, int textureHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrenderWidget(GuiGraphics graphics, int mouseX, int mouseY, float a) voidupdateResource(Identifier identifier) Methods inherited from class ImageWidget
isActive, nextFocusPath, playDownSound, sprite, texture, updateWidgetNarrationMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onClick, onDrag, onRelease, playButtonClickSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
texture
-
textureWidth
private final int textureWidth -
textureHeight
private final int textureHeight
-
-
Constructor Details
-
Texture
public Texture(int x, int y, int width, int height, Identifier texture, int textureWidth, int textureHeight)
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classAbstractWidget
-
updateResource
- Specified by:
updateResourcein classImageWidget
-