Package guideme.scene
Class LytItemImage
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.scene.LytItemImage
- All Implemented Interfaces:
guideme.internal.siteexport.ExportableResourceProvider
,Styleable
public class LytItemImage
extends LytBlock
implements guideme.internal.siteexport.ExportableResourceProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected LytRect
computeLayout
(LayoutContext context, int x, int y, int availableWidth) void
exportResources
(guideme.internal.siteexport.ResourceExporter exporter) net.minecraft.world.item.ItemStack
getItem()
float
getScale()
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
setItem
(net.minecraft.world.item.ItemStack item) void
setScale
(float scale) 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.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytItemImage
public LytItemImage()
-
-
Method Details
-
getItem
public net.minecraft.world.item.ItemStack getItem() -
setItem
public void setItem(net.minecraft.world.item.ItemStack item) -
getScale
public float getScale() -
setScale
public void setScale(float scale) -
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
-
exportResources
public void exportResources(guideme.internal.siteexport.ResourceExporter exporter) - Specified by:
exportResources
in interfaceguideme.internal.siteexport.ExportableResourceProvider
-