示例#1
0
  private static void addPulverizerRecipes() {
    ItemStack woodchips = ItemRegistry.getItem("woodchips", 1);

    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs1.get(), 1, 0), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs1.get(), 1, 1), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs1.get(), 1, 2), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs1.get(), 1, 3), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs2.get(), 1, 0), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs2.get(), 1, 1), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs2.get(), 1, 2), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs2.get(), 1, 3), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs3.get(), 1, 0), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs3.get(), 1, 1), woodchips);
    CraftingManagers.pulverizerManager.addRecipe(
        160, new ItemStack(Blocks.logs3.get(), 1, 2), woodchips);
  }
 public static ItemStack getThermexItem(String name, int quantity) {
   try {
     ItemStack item = thermalexpansion.api.item.ItemRegistry.getItem(name, quantity);
     if (item != null) {
       return item;
     }
   } catch (Exception e) {
   }
   // thermalexpansion.api.item.ItemRegistry.printItemNames();
   MuseLogger.logError("Failed to get Thermal Expansion item " + name);
   return null;
 }