Recipe
namespace Griff.Modules.BlockWorlds;
public sealed class RecipeOne of a Crafting’s recipes: what it makes, how many, what it takes, and where.
Properties
Section titled “Properties”public int Count { get; init; }public string Item { get; init; }public IReadOnlyList<ValueTuple<string, int>> Needs { get; init; }NeedsText
Section titled “NeedsText”public string NeedsText { get; }“Wood 1 + Coal 1”, for showing.
Station
Section titled “Station”public string? Station { get; init; }Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string Item, out int Count, out IReadOnlyList<ValueTuple<string, int>> Needs, out string? Station)Equals
Section titled “Equals”public override bool Equals(object? obj)Equals
Section titled “Equals”public bool Equals(Recipe? other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()public static Recipe? Parse(string? row)Reads “Torch 4 = Wood + Coal @ Workbench”; null if it isn’t a recipe.
ToString
Section titled “ToString”public override string ToString()