2021-10-24 18:49:48 +02:00
|
|
|
package de.ellpeck.actuallyadditions.data;
|
|
|
|
|
|
|
|
import com.google.gson.JsonObject;
|
2021-11-13 17:30:53 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.ActuallyAdditions;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.crafting.CrushingRecipe;
|
2021-10-24 18:49:48 +02:00
|
|
|
import net.minecraft.data.DataGenerator;
|
2024-03-02 21:23:08 +01:00
|
|
|
import net.minecraft.data.HashCache;
|
|
|
|
import net.minecraft.data.recipes.FinishedRecipe;
|
|
|
|
import net.minecraft.data.recipes.RecipeProvider;
|
|
|
|
import net.minecraft.resources.ResourceLocation;
|
|
|
|
import net.minecraft.world.item.Items;
|
|
|
|
import net.minecraft.world.item.crafting.Ingredient;
|
2021-10-24 18:49:48 +02:00
|
|
|
|
2021-11-13 17:30:53 +01:00
|
|
|
import javax.annotation.Nonnull;
|
2021-10-24 18:49:48 +02:00
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.util.function.Consumer;
|
|
|
|
|
|
|
|
public class CrushingRecipeGenerator extends RecipeProvider {
|
|
|
|
public CrushingRecipeGenerator(DataGenerator p_i48262_1_) {
|
|
|
|
super(p_i48262_1_);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2024-03-02 21:23:08 +01:00
|
|
|
protected void saveAdvancement(@Nonnull HashCache p_208310_1_, @Nonnull JsonObject p_208310_2_, @Nonnull Path p_208310_3_) {
|
2021-10-24 18:49:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2024-03-02 21:23:08 +01:00
|
|
|
protected void buildCraftingRecipes(Consumer<FinishedRecipe> consumer) {
|
|
|
|
consumer.accept(new CrushingRecipe.Result(new ResourceLocation(ActuallyAdditions.MODID, "crushing/bone_crusher"),
|
2021-11-13 17:30:53 +01:00
|
|
|
Ingredient.of(Items.BONE), Items.BONE_MEAL, 6, 1.0f , Items.AIR, 0, 0.0f));
|
2021-10-24 18:49:48 +02:00
|
|
|
}
|
|
|
|
}
|