Class LytItemGrid
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
guideme.document.block.LytItemGrid
- All Implemented Interfaces:
LytBlockContainer, LytErrorSink, Styleable
Shows items in a grid-like fashion, i.e. to show-case variants.
-
Field Summary
Fields inherited from class LytBox
children, paddingBottom, paddingLeft, paddingRight, paddingTop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(net.minecraft.world.item.crafting.display.SlotDisplay display) voidaddItem(net.minecraft.world.item.Item item) voidaddItem(net.minecraft.world.item.ItemStack stack) protected LytRectcomputeBoxLayout(LayoutContext context, int x, int y, int availableWidth) Methods inherited from class LytBox
append, clearContent, computeLayout, getBackgroundColor, getChildren, onLayoutMoved, removeChild, render, setBackgroundColor, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopMethods inherited from class LytBlock
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isCulled, isFullWidth, layout, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setFullWidth, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from class LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildrenMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LytBlockContainer
appendErrorMethods inherited from interface Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytItemGrid
public LytItemGrid()
-
-
Method Details
-
computeBoxLayout
- Specified by:
computeBoxLayoutin classLytBox
-
addItem
public void addItem(net.minecraft.world.item.crafting.display.SlotDisplay display) -
addItem
public void addItem(net.minecraft.world.item.Item item) -
addItem
public void addItem(net.minecraft.world.item.ItemStack stack)
-