Fruitful work on .txt document parser
This commit is contained in:
parent
815dc167dd
commit
1c806c4328
13 changed files with 557 additions and 17 deletions
|
@ -0,0 +1,27 @@
|
|||
package WayofTime.alchemicalWizardry.common.book;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import WayofTime.alchemicalWizardry.book.registries.RecipeRegistry;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
|
||||
public class SpecialEntryRegistry
|
||||
{
|
||||
public static Map<String, IRecipe> recipeStringMap = new HashMap();
|
||||
|
||||
public static void registerIRecipeKey(IRecipe recipe, String key)
|
||||
{
|
||||
recipeStringMap.put(key, recipe);
|
||||
}
|
||||
|
||||
public static IRecipe getIRecipeForKey(String str)
|
||||
{
|
||||
return recipeStringMap.get(str);
|
||||
}
|
||||
|
||||
public static void registerLatestIRecipe(String key)
|
||||
{
|
||||
SpecialEntryRegistry.registerIRecipeKey(RecipeRegistry.getLatestCraftingRecipe(), key);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue