Package guideme.document.block
Class LytSlotGrid
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
guideme.document.block.LytSlotGrid
- All Implemented Interfaces:
LytBlockContainer
,LytErrorSink
,Styleable
-
Field Summary
Fields inherited from class guideme.document.block.LytBox
children, paddingBottom, paddingLeft, paddingRight, paddingTop
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LytSlotGrid
protected LytRect
computeBoxLayout
(LayoutContext context, int x, int y, int availableWidth) boolean
void
render
(RenderContext context) static LytSlotGrid
void
setIngredient
(int x, int y, net.minecraft.world.item.crafting.Ingredient ingredient) void
setRenderEmptySlots
(boolean renderEmptySlots) Methods inherited from class guideme.document.block.LytBox
append, clearContent, computeLayout, getChildren, onLayoutMoved, removeChild, renderBatch, setPadding
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
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, 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.block.LytBlockContainer
appendError
Methods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytSlotGrid
public LytSlotGrid(int width, int height)
-
-
Method Details
-
column
public static LytSlotGrid column(List<net.minecraft.world.item.crafting.Ingredient> ingredients, boolean skipEmpty) -
row
public static LytSlotGrid row(List<net.minecraft.world.item.crafting.Ingredient> ingredients, boolean skipEmpty) -
isRenderEmptySlots
public boolean isRenderEmptySlots() -
setRenderEmptySlots
public void setRenderEmptySlots(boolean renderEmptySlots) -
computeBoxLayout
- Specified by:
computeBoxLayout
in classLytBox
-
setIngredient
public void setIngredient(int x, int y, net.minecraft.world.item.crafting.Ingredient ingredient) -
render
-