Interface RecipeWebRenderingContext.RecipeBoxBuilder
- Enclosing interface:
RecipeWebRenderingContext
public static interface RecipeWebRenderingContext.RecipeBoxBuilder
-
Method Summary
Modifier and TypeMethodDescriptionAppends a HTML node.arrow()voidbuild()Creates a standard ingredient grid using the same logic used for Vanilla crafting recipes.grid(int columns, int rows, Consumer<RecipeWebRenderingContext.GridBuilder> customizer) Creates a flexible grid where each cell can be filled individually.Adds a result slot with the current recipes result.shapelessSlots(List<List<String>> ingredients)
-
Method Details
-
craftingIngredientGrid
RecipeWebRenderingContext.RecipeBoxBuilder craftingIngredientGrid()Creates a standard ingredient grid using the same logic used for Vanilla crafting recipes. The exported recipe is expected to have aningredientlist. If theshapelessfield is set totrue, then no width is required, but if it is missing orfalse, the width of the recipe grid must have been encoded inwidth. -
shapelessSlots
-
arrow
-
resultSlot
RecipeWebRenderingContext.RecipeBoxBuilder resultSlot()Adds a result slot with the current recipes result. -
slot
-
slot
-
append
Appends a HTML node. -
grid
RecipeWebRenderingContext.RecipeBoxBuilder grid(int columns, int rows, Consumer<RecipeWebRenderingContext.GridBuilder> customizer) Creates a flexible grid where each cell can be filled individually.- Parameters:
columns- The number of columns in the grid.rows- The number of rows in the grid.
-
build
void build()
-