Class ResizableTextureImageWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.neoforged.neoforge.client.gui.widget.ResizableTextureImageWidget
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
A variation of
invalid reference
ImageWidget.Texture
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable LogoRendererprivate Identifierprivate intprivate intFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionResizableTextureImageWidget(int x, int y, int width, int height, Identifier texture, int textureWidth, int textureHeight) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) booleanisActive()nextFocusPath(FocusNavigationEvent navigationEvent) voidplayDownSound(SoundManager soundManager) voidupdateResource(Identifier identifier, int textureWidth, int textureHeight) protected voidvoiduseMinecraftLogo(int width) Methods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, 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, 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
capturesInput, charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, preeditUpdated, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
logoRenderer
-
texture
-
textureWidth
private int textureWidth -
textureHeight
private int textureHeight
-
-
Constructor Details
-
ResizableTextureImageWidget
public ResizableTextureImageWidget(int x, int y, int width, int height, Identifier texture, int textureWidth, int textureHeight)
-
-
Method Details
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
playDownSound
- Overrides:
playDownSoundin classAbstractWidget
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceNarratableEntry- Overrides:
isActivein classAbstractWidget
-
extractWidgetRenderState
protected void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Specified by:
extractWidgetRenderStatein classAbstractWidget
-
updateResource
-
useMinecraftLogo
public void useMinecraftLogo(int width)
-