Class CrucibleMoldRecipes

java.lang.Object
com.hbm_m.recipe.CrucibleMoldRecipes

public class CrucibleMoldRecipes extends Object
Simple registry for crucible mold-casting recipes. Each recipe is stored as a four-element array: [0] = input material (ingot / ore with material-id NBT once Mats is ported) [1] = mold item [2] = reserved / unused placeholder (was "basin" stack in legacy code) [3] = cast output Populate via register(net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack) once the Mats / ItemMold system is ported.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.world.item.ItemStack[]>
    Returns all registered mold recipes as [material, mold, placeholder, output] arrays.
    static void
    register(net.minecraft.world.item.ItemStack material, net.minecraft.world.item.ItemStack mold, net.minecraft.world.item.ItemStack output)
    Register a mold casting recipe.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CrucibleMoldRecipes

      public CrucibleMoldRecipes()
  • Method Details

    • register

      public static void register(net.minecraft.world.item.ItemStack material, net.minecraft.world.item.ItemStack mold, net.minecraft.world.item.ItemStack output)
      Register a mold casting recipe.
      Parameters:
      material - the input material stack
      mold - the mold item stack
      output - the resulting cast item
    • getMoldRecipes

      public static List<net.minecraft.world.item.ItemStack[]> getMoldRecipes()
      Returns all registered mold recipes as [material, mold, placeholder, output] arrays.