Class MoldCastingRecipes

java.lang.Object
com.hbm_m.recipe.MoldCastingRecipes

public class MoldCastingRecipes extends Object
Casting outputs for the foundry basin's molds. Follows the original 1.7.10 Mold.getOutput(material) idea: each mold shape dictates the amount of molten material needed (= basin capacity) and the resulting item for a given material.

PLATE vs PLATE_CAST: in the original these are two distinct molds — PLATE (shape MaterialShapes.PLATE) produces the plain, pressed-look plate item (plate_<mat>), while PLATE_CAST (shape MaterialShapes.CASTPLATE) produces the rougher cast-look plate (plate_cast_<mat>, i.e. MaterialType.getCastPlate(int)).

Outputs are resolved data-driven via forge item tags (forge:ingots/<mat>, forge:nuggets/<mat>, forge:storage_blocks/<mat>) or by item id (hbm_m:plate_<mat>, hbm_m:wire_<mat>, ...), so all materials work without hardcoding every mold × material combination.

  • Constructor Details

    • MoldCastingRecipes

      public MoldCastingRecipes()
  • Method Details

    • getCost

      public static int getCost(ItemCastMold.MoldType mold)
      Amount of molten material (mb) a mold requires. 0 = mold not castable (yet).
    • getOutput

      public static net.minecraft.world.item.ItemStack getOutput(ItemCastMold.MoldType mold, MaterialType mat)
      The item cast by the given mold from the given material, or EMPTY if that combo has no output.
    • getMaterialIcon

      public static net.minecraft.world.item.ItemStack getMaterialIcon(MaterialType mat)
      A representative item for the given material, for JEI display purposes only.