RecipeBook class
A game's recipes.
Constructors
-
RecipeBook(List<
Recipe> recipes) -
recipes, in the order a crafting screen lists them.
Properties
Methods
-
available(
String station) → List< Recipe> -
What can be made at
station: its recipes and the hand's. -
canCraft(
Recipe recipe, Inventory inventory) → bool -
Whether
inventoryholds every ingredient ofrecipe. -
craft(
Recipe recipe, Inventory inventory) → bool - Uses up the ingredients and adds the result; false (and nothing changed) when something is missing.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited