Basic Brew system implementation, still quite a fair bit of work to be done, but this part is working, at least.

This commit is contained in:
Lizbeth Rika committed 2014-11-01 20:38:43 +00:00
1 parent e413b85f95
commit f84b6aeea9
15 files changed
+338 -12

No files matched your search

+12
View File
@@ -83,6 +83,8 @@ public final class BotaniaAPI {
public static KnowledgeType basicKnowledge, elvenKnowledge;
public static Brew fallbackBrew = new Brew("fallback", "botania.brew.fallback", 0, 0);
static {
registerSubTile("", DummySubTile.class);
@@ -195,6 +197,16 @@ public final class BotaniaAPI {
return brew;
}
/**
* Gets a brew from the key passed in, returns the fallback if
* it's not in the map.
*/
public static Brew getBrewFromKey(String key) {
if(brewMap.containsKey(key))
return brewMap.get(key);
return fallbackBrew;
}
/**
* Registers a Petal Recipe.
* @param output The ItemStack to craft.