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 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 LytVBox
computeBoxLayoutMethods inherited from class LytAxisBox
getAlignItems, getGap, setAlignItems, setGapMethods inherited from class LytBox
append, clearContent, computeLayout, getBackgroundColor, getChildren, onLayoutMoved, removeChild, 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
-
Method Details
-
getRecipe
-
render
-
exportResources
- Specified by:
exportResourcesin interfaceExportableResourceProvider
-
builder
-