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;
|
|
|
|
import net.minecraft.data.DirectoryCache;
|
|
|
|
import net.minecraft.data.IFinishedRecipe;
|
|
|
|
import net.minecraft.data.RecipeProvider;
|
2021-11-13 17:30:53 +01:00
|
|
|
import net.minecraft.item.Items;
|
|
|
|
import net.minecraft.item.crafting.Ingredient;
|
|
|
|
import net.minecraft.util.ResourceLocation;
|
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
|
2021-11-13 17:30:53 +01:00
|
|
|
protected void saveAdvancement(@Nonnull DirectoryCache p_208310_1_, @Nonnull JsonObject p_208310_2_, @Nonnull Path p_208310_3_) {
|
2021-10-24 18:49:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2021-11-13 17:30:53 +01:00
|
|
|
protected void buildShapelessRecipes(Consumer<IFinishedRecipe> consumer) {
|
2021-11-24 19:19:31 +01:00
|
|
|
consumer.accept(new CrushingRecipe.FinishedRecipe(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
|
|
|
}
|
|
|
|
}
|