Package guideme.document.block.recipes
Class LytStandardRecipeBox<T extends net.minecraft.world.item.crafting.Recipe<?>>
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytBox
guideme.document.block.LytAxisBox
guideme.document.block.LytVBox
guideme.document.block.recipes.LytStandardRecipeBox<T>
- All Implemented Interfaces:
LytBlockContainer,LytErrorSink,ExportableResourceProvider,Styleable
public class LytStandardRecipeBox<T extends net.minecraft.world.item.crafting.Recipe<?>>
extends LytVBox
implements ExportableResourceProvider
Provides an easy way to define recipes that are rendered as follows:
- Title bar with optional icon.
- A grid of slots on the left side, representing the recipe inputs.
- A grid of slots on the right side, representing the recipe outputs.
- A big arrow pointing left to right between the two grids.
builder() method to get started.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class guideme.document.block.LytBox
children, paddingBottom, paddingLeft, paddingRight, paddingTop -
Method Summary
Modifier and TypeMethodDescriptionstatic LytStandardRecipeBox.Builderbuilder()voidexportResources(ResourceExporter exporter) net.minecraft.world.item.crafting.RecipeHolder<? extends T> voidrender(RenderContext context) Methods inherited from class guideme.document.block.LytVBox
computeBoxLayoutMethods inherited from class guideme.document.block.LytAxisBox
getAlignItems, getGap, setAlignItems, setGapMethods inherited from class guideme.document.block.LytBox
append, clearContent, computeLayout, getBackgroundColor, getChildren, onLayoutMoved, removeChild, 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
-
Method Details
-
getRecipe
-
render
-
exportResources
- Specified by:
exportResourcesin interfaceExportableResourceProvider
-
builder
-