Class

import mods.pyrotech.ObsidianAnvil;

Methods

static void addRecipe(
  string name,       // unique recipe name
  IItemStack output, // recipe output
  IIngredient input, // recipe input
  int hits,          // base number of hammer hits required
  string type        // hammer | pickaxe
);

static void removeRecipes(
  IIngredient output // recipe output to match
);

static void removeAllRecipes();

static void setGameStages(
  Stages stages // game stages
);

Sets game stage logic required to use the device.


Examples

import mods.pyrotech.ObsidianAnvil;

ObsidianAnvil.addRecipe("cobblestone_from_stone", <minecraft:cobblestone>, <minecraft:stone>, 8, "hammer");