Skip to content

Recipe

namespace Griff.Modules.BlockWorlds;
public sealed class Recipe

One of a Crafting’s recipes: what it makes, how many, what it takes, and where.

public int Count { get; init; }
public string Item { get; init; }
public IReadOnlyList<ValueTuple<string, int>> Needs { get; init; }
public string NeedsText { get; }

“Wood 1 + Coal 1”, for showing.

public string? Station { get; init; }
public void Deconstruct(out string Item, out int Count, out IReadOnlyList<ValueTuple<string, int>> Needs, out string? Station)
public override bool Equals(object? obj)
public bool Equals(Recipe? other)
public override int GetHashCode()
public static Recipe? Parse(string? row)

Reads “Torch 4 = Wood + Coal @ Workbench”; null if it isn’t a recipe.

public override string ToString()