Skip to content

RecipesAttribute

namespace Griff.Modules.BlockWorlds;
public sealed class RecipesAttribute : RowsAttribute

Marks a list of strings as recipes, “Torch 4 = Wood + Coal @ Workbench” (a Crafting’s Recipes): the Inspector lists them a row each, what it makes and how many, what it takes picked item by item, and where.

public override IReadOnlyList<RowColumn> Columns { get; }
public override string Example { get; }
public override string Noun { get; }
public override string Describe()
public override IReadOnlyList<string> NewRow()
public override IReadOnlyList<string>? Read(string row)
public override string Write(IReadOnlyList<string> cells)