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.Builder
builder()
void
exportResources
(ResourceExporter exporter) net.minecraft.world.item.crafting.RecipeHolder
<? extends T> void
render
(RenderContext context) Methods inherited from class guideme.document.block.LytVBox
computeBoxLayout
Methods inherited from class guideme.document.block.LytAxisBox
getAlignItems, getGap, setAlignItems, setGap
Methods inherited from class guideme.document.block.LytBox
append, clearContent, computeLayout, getBackgroundColor, getChildren, onLayoutMoved, removeChild, renderBatch, setBackgroundColor, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
Methods 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, 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
-
Method Details
-
getRecipe
-
render
-
exportResources
- Specified by:
exportResources
in interfaceExportableResourceProvider
-
builder
-