mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-16 17:33:12 +01:00
26 lines
771 B
Java
26 lines
771 B
Java
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;
|
|
public final Ingredient input;
|
|
public final Ingredient startItem;
|
|
public final ItemStack output;
|
|
|
|
public OfferingRecipe(ResourceLocation name, Ingredient input, Ingredient startItem, ItemStack output) {
|
|
this.name = name;
|
|
this.input = input;
|
|
this.startItem = startItem;
|
|
this.output = output;
|
|
}
|
|
|
|
public OfferingRecipe register() {
|
|
NaturesAuraAPI.OFFERING_RECIPES.put(this.name, this);
|
|
return this;
|
|
}
|
|
}
|