Package com.petrolpark.core.recipe.book
Interface IBookRequiredRecipe
- All Superinterfaces:
INamedRecipe
- All Known Implementing Classes:
AdvancedProcessingRecipe,BookRequiredCraftingRecipe,RecipeBookMechanicalCraftingRecipe
-
Field Summary
Fields inherited from interface com.petrolpark.core.recipe.INamedRecipe
UNKNOWN_RECIPE_TRANSLATION_KEY -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanacceptsRecipe(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 voidaddProxyRecipeBookAcceptorPositions(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) static IBookRequiredRecipecheckedCast(net.minecraft.world.item.crafting.Recipe<?> recipe) static booleanhasRequiredBook(net.minecraft.world.level.block.entity.BlockEntity be, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder) static booleanhasRequiredBook(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.item.crafting.RecipeHolder<?> recipeHolder) booleanisBookRequired(net.minecraft.world.level.Level level) static booleanisRecipeBookAcceptor(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)
-