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

31 lines
881 B
Java
Raw Normal View History

2018-11-11 13:26:19 +01:00
package de.ellpeck.naturesaura.api.recipes;
2018-10-18 13:34:37 +02:00
2018-11-11 13:26:19 +01:00
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
2018-10-18 13:34:37 +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-18 13:34:37 +02:00
public class AltarRecipe {
2018-10-22 00:14:52 +02:00
public final ResourceLocation name;
public final Ingredient input;
2018-10-18 13:34:37 +02:00
public final ItemStack output;
public final Ingredient catalyst;
2018-10-18 13:34:37 +02:00
public final int aura;
public final int time;
public AltarRecipe(ResourceLocation name, Ingredient input, ItemStack output, Ingredient catalyst, int aura, int time) {
2018-10-22 00:14:52 +02:00
this.name = name;
2018-10-18 13:34:37 +02:00
this.input = input;
this.output = output;
2018-10-31 01:17:58 +01:00
this.catalyst = catalyst;
2018-10-18 13:34:37 +02:00
this.aura = aura;
this.time = time;
2018-11-11 16:50:51 +01:00
}
2018-11-07 13:33:49 +01:00
public AltarRecipe register() {
2018-11-11 13:26:19 +01:00
NaturesAuraAPI.ALTAR_RECIPES.put(this.name, this);
2018-11-11 16:50:51 +01:00
return this;
2018-10-18 13:34:37 +02:00
}
}