Package com.petrolpark.core.recipe
Class RecipeHelper
java.lang.Object
com.petrolpark.core.recipe.RecipeHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidAt(net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder, net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) Check if a Recipe has aBiome requirementthat it is fulfilled, and that if itrequires 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)
-
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 aBiome requirementthat it is fulfilled, and that if itrequires a Recipe Book, that one is present.- Parameters:
recipeHolder-level-pos-- Returns:
- Whether the checks listed above pass
-