mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-06-23 03:29:09 +02:00
32 lines
860 B
Java
32 lines
860 B
Java
package de.ellpeck.naturesaura.recipes;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.util.ResourceLocation;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
public class TreeRitualRecipe {
|
|
|
|
public static final Map<ResourceLocation, TreeRitualRecipe> RECIPES = new HashMap<>();
|
|
|
|
public final ResourceLocation name;
|
|
public final ItemStack saplingType;
|
|
public final ItemStack[] items;
|
|
public final ItemStack result;
|
|
public final int time;
|
|
|
|
public TreeRitualRecipe(ResourceLocation name, ItemStack saplingType, ItemStack result, int time, ItemStack... items) {
|
|
this.name = name;
|
|
this.saplingType = saplingType;
|
|
this.items = items;
|
|
this.result = result;
|
|
this.time = time;
|
|
}
|
|
|
|
public TreeRitualRecipe add() {
|
|
RECIPES.put(this.name, this);
|
|
return this;
|
|
}
|
|
}
|