Class RecipeHelper

java.lang.Object
com.petrolpark.core.recipe.RecipeHelper

public class RecipeHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isValidAt(net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
    Check if a Recipe has a Biome requirement that it is fulfilled, and that if it requires a Recipe Book, that one is present.
    static List<net.minecraft.world.item.ItemStack>
    rollResults(com.simibubi.create.content.processing.recipe.ProcessingRecipe<?,?> recipe, int multiplier)
     
    static List<net.minecraft.world.item.ItemStack>
    rollResults(com.simibubi.create.content.processing.recipe.ProcessingRecipe<?,?> recipe, net.minecraft.world.entity.player.Player player, int multiplier)
     

    Methods inherited from class java.lang.Object

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

    • RecipeHelper

      public RecipeHelper()
  • Method Details

    • rollResults

      public static List<net.minecraft.world.item.ItemStack> rollResults(com.simibubi.create.content.processing.recipe.ProcessingRecipe<?,?> recipe, int multiplier)
    • rollResults

      public static List<net.minecraft.world.item.ItemStack> rollResults(com.simibubi.create.content.processing.recipe.ProcessingRecipe<?,?> recipe, net.minecraft.world.entity.player.Player player, int multiplier)
    • isValidAt

      public static boolean isValidAt(net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Check if a Recipe has a Biome requirement that it is fulfilled, and that if it requires a Recipe Book, that one is present.
      Parameters:
      recipeHolder -
      level -
      pos -
      Returns:
      Whether the checks listed above pass