Package guideme.document.block
Class LytImage
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytImage
- All Implemented Interfaces:
InteractiveElement
,Styleable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LytRect
computeLayout
(LayoutContext context, int x, int y, int availableWidth) getAlt()
net.minecraft.resources.ResourceLocation
getTitle()
getTooltip
(float x, float y) protected void
onLayoutMoved
(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)
being moved.void
render
(RenderContext context) void
renderBatch
(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) void
void
setImage
(net.minecraft.resources.ResourceLocation id, byte @Nullable [] imageData) void
Methods inherited from class guideme.document.block.LytBlock
getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, layout, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop
Methods inherited from class guideme.document.block.LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildren
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface guideme.document.interaction.InteractiveElement
mouseCaptureLost, mouseClicked, mouseMoved, mouseReleased
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytImage
public LytImage()
-
-
Method Details
-
getImageId
public net.minecraft.resources.ResourceLocation getImageId() -
getTitle
-
setTitle
-
getAlt
-
setAlt
-
setImage
public void setImage(net.minecraft.resources.ResourceLocation id, byte @Nullable [] imageData) -
computeLayout
- Specified by:
computeLayout
in classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlock
Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)
being moved.- Specified by:
onLayoutMoved
in classLytBlock
-
renderBatch
public void renderBatch(RenderContext context, net.minecraft.client.renderer.MultiBufferSource buffers) - Specified by:
renderBatch
in classLytBlock
-
render
-
getTooltip
- Specified by:
getTooltip
in interfaceInteractiveElement
- Parameters:
x
- X position of the mouse in document coordinates.y
- Y position of the mouse in document coordinates.
-