NaturesAura/src/main/java/de/ellpeck/naturesaura/api/recipes/TreeRitualRecipe.java

29 lines
880 B
Java
Raw Normal View History

2018-11-11 13:26:19 +01:00
package de.ellpeck.naturesaura.api.recipes;
2018-10-16 01:36:30 +02:00
2018-11-11 13:26:19 +01:00
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
2018-10-16 01:36:30 +02:00
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
2018-10-22 00:14:52 +02:00
import net.minecraft.util.ResourceLocation;
2018-10-16 01:36:30 +02:00
public class TreeRitualRecipe {
2018-10-22 00:14:52 +02:00
public final ResourceLocation name;
public final Ingredient saplingType;
public final Ingredient[] ingredients;
2018-10-16 01:36:30 +02:00
public final ItemStack result;
public final int time;
public TreeRitualRecipe(ResourceLocation name, Ingredient saplingType, ItemStack result, int time, Ingredient... ingredients) {
2018-10-22 00:14:52 +02:00
this.name = name;
2018-10-16 01:36:30 +02:00
this.saplingType = saplingType;
this.ingredients = ingredients;
2018-10-16 01:36:30 +02:00
this.result = result;
this.time = time;
2018-11-11 16:50:51 +01:00
}
2018-10-16 01:36:30 +02:00
2018-11-11 16:50:51 +01:00
public TreeRitualRecipe register() {
2018-11-11 13:26:19 +01:00
NaturesAuraAPI.TREE_RITUAL_RECIPES.put(this.name, this);
2018-11-11 16:50:51 +01:00
return this;
2018-10-16 01:36:30 +02:00
}
}