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

27 lines
771 B
Java
Raw Normal View History

2018-11-20 19:59:18 +01:00
package de.ellpeck.naturesaura.api.recipes;
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.util.ResourceLocation;
public class OfferingRecipe {
public final ResourceLocation name;
2018-12-30 20:37:00 +01:00
public final Ingredient input;
2018-11-20 19:59:18 +01:00
public final Ingredient startItem;
public final ItemStack output;
2018-12-30 20:37:00 +01:00
public OfferingRecipe(ResourceLocation name, Ingredient input, Ingredient startItem, ItemStack output) {
2018-11-20 19:59:18 +01:00
this.name = name;
this.input = input;
this.startItem = startItem;
this.output = output;
}
public OfferingRecipe register() {
NaturesAuraAPI.OFFERING_RECIPES.put(this.name, this);
return this;
}
}