2020-04-29 16:38:50 +02:00
|
|
|
package de.ellpeck.naturesaura.recipes;
|
|
|
|
|
2023-07-08 12:32:27 +02:00
|
|
|
import net.minecraft.core.RegistryAccess;
|
2021-12-04 19:17:21 +01:00
|
|
|
import net.minecraft.world.item.ItemStack;
|
|
|
|
import net.minecraft.world.item.crafting.Recipe;
|
|
|
|
import net.minecraft.world.level.Level;
|
2024-02-03 14:56:07 +01:00
|
|
|
import net.neoforged.neoforge.items.wrapper.RecipeWrapper;
|
2020-04-29 16:38:50 +02:00
|
|
|
|
2021-12-04 19:17:21 +01:00
|
|
|
public abstract class ModRecipe implements Recipe<RecipeWrapper> {
|
2020-04-29 16:38:50 +02:00
|
|
|
|
|
|
|
@Override
|
2021-12-04 15:40:09 +01:00
|
|
|
public boolean matches(RecipeWrapper inv, Level levelIn) {
|
2020-04-29 16:38:50 +02:00
|
|
|
// return true here so that we can easily get all recipes of a type from the recipe manager
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-07-08 12:32:27 +02:00
|
|
|
public ItemStack assemble(RecipeWrapper inv, RegistryAccess access) {
|
2020-04-29 16:38:50 +02:00
|
|
|
return ItemStack.EMPTY;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-12-04 19:17:21 +01:00
|
|
|
public boolean canCraftInDimensions(int width, int height) {
|
2020-04-29 16:38:50 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2021-12-04 19:17:21 +01:00
|
|
|
|
2020-04-29 16:38:50 +02:00
|
|
|
}
|