ARC Recipe Framework Part 1
Added the serializers, deserializers, builders, etc, for the Alchemical Reaction Chamber recipe, ARCRecipe. The block does not currently have the functionality to use it yet. And only when I am currently writing this do I realize I forgot to add FluidStack functionality to the recipes. Welp.
This commit is contained in:
parent
152525bbe3
commit
f9327d8f5a
21 changed files with 556 additions and 39 deletions
40
src/main/java/wayoftime/bloodmagic/recipe/IRecipeARC.java
Normal file
40
src/main/java/wayoftime/bloodmagic/recipe/IRecipeARC.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package wayoftime.bloodmagic.recipe;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipeSerializer;
|
||||
import net.minecraft.item.crafting.IRecipeType;
|
||||
import net.minecraft.item.crafting.Ingredient;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import wayoftime.bloodmagic.api.impl.recipe.RecipeARC;
|
||||
import wayoftime.bloodmagic.common.recipe.BloodMagicRecipeType;
|
||||
import wayoftime.bloodmagic.common.registries.BloodMagicRecipeSerializers;
|
||||
|
||||
public class IRecipeARC extends RecipeARC
|
||||
{
|
||||
public IRecipeARC(ResourceLocation id, Ingredient input, Ingredient arc_tool, ItemStack output)
|
||||
{
|
||||
super(id, input, arc_tool, output, new ArrayList<Pair<ItemStack, Double>>());
|
||||
}
|
||||
|
||||
public IRecipeARC(ResourceLocation id, Ingredient input, Ingredient arc_tool, ItemStack output, List<Pair<ItemStack, Double>> addedItems)
|
||||
{
|
||||
super(id, input, arc_tool, output, addedItems);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IRecipeSerializer<RecipeARC> getSerializer()
|
||||
{
|
||||
return BloodMagicRecipeSerializers.ARC.getRecipeSerializer();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IRecipeType<RecipeARC> getType()
|
||||
{
|
||||
return BloodMagicRecipeType.ARC;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue