Interface IBookRequiredRecipe

All Superinterfaces:
INamedRecipe
All Known Implementing Classes:
AdvancedProcessingRecipe, BookRequiredCraftingRecipe, RecipeBookMechanicalCraftingRecipe

public interface IBookRequiredRecipe extends INamedRecipe
  • Field Summary

    Fields inherited from interface com.petrolpark.core.recipe.INamedRecipe

    UNKNOWN_RECIPE_TRANSLATION_KEY
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    acceptsRecipe(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
     
    static void
    addProxyRecipeBookAcceptorPositions(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos acceptorPos, net.minecraft.world.level.block.state.BlockState acceptorState, Consumer<net.minecraft.core.BlockPos> posAdder)
     
    checkedCast(net.minecraft.world.item.crafting.Recipe<?> recipe)
     
    static boolean
    hasRequiredBook(net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
     
    static boolean
    hasRequiredBook(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
     
    boolean
    isBookRequired(net.minecraft.world.level.Level level)
     
    static boolean
    isRecipeBookAcceptor(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from interface com.petrolpark.core.recipe.INamedRecipe

    getName
  • Method Details

    • isBookRequired

      boolean isBookRequired(net.minecraft.world.level.Level level)
    • checkedCast

      @Nullable static IBookRequiredRecipe checkedCast(net.minecraft.world.item.crafting.Recipe<?> recipe)
    • hasRequiredBook

      static boolean hasRequiredBook(net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
    • hasRequiredBook

      static boolean hasRequiredBook(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
    • isRecipeBookAcceptor

      static boolean isRecipeBookAcceptor(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • acceptsRecipe

      static boolean acceptsRecipe(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder)
    • addProxyRecipeBookAcceptorPositions

      static void addProxyRecipeBookAcceptorPositions(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos acceptorPos, net.minecraft.world.level.block.state.BlockState acceptorState, Consumer<net.minecraft.core.BlockPos> posAdder)