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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LytSlotGridstatic LytSlotGridcolumnFromStack(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty) protected LytRectcomputeBoxLayout(LayoutContext context, int x, int y, int availableWidth) booleanvoidrender(RenderContext context) static LytSlotGridstatic LytSlotGridrowFromStacks(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty) voidsetIngredient(int x, int y, net.minecraft.world.item.crafting.Ingredient ingredient) voidsetItem(int x, int y, net.minecraft.world.item.ItemStack item) voidsetRenderEmptySlots(boolean renderEmptySlots) Methods inherited from class guideme.document.block.LytBox
append, clearContent, computeLayout, getBackgroundColor, getChildren, onLayoutMoved, removeChild, renderBatch, setBackgroundColor, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopMethods inherited from class guideme.document.block.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 guideme.document.block.LytNode
getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, onMouseEnter, onMouseLeave, pickNode, setHoverStyle, setSourceNode, setStyle, tick, visit, visit, visitChildrenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.document.block.LytBlockContainer
appendErrorMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Constructor Details
-
LytSlotGrid
public LytSlotGrid(int width, int height)
-
-
Method Details
-
columnFromStack
public static LytSlotGrid columnFromStack(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty) -
rowFromStacks
public static LytSlotGrid rowFromStacks(List<net.minecraft.world.item.ItemStack> items, boolean skipEmpty) -
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:
computeBoxLayoutin classLytBox
-
setItem
public void setItem(int x, int y, net.minecraft.world.item.ItemStack item) -
setIngredient
public void setIngredient(int x, int y, net.minecraft.world.item.crafting.Ingredient ingredient) -
render
-