Some intital work in displaying recipes on the Lexicon.

This commit is contained in:
Vasco Lavos committed 2014-01-19 17:02:36 +00:00
1 parent fc3a6b3299
commit 9bfd8ff93f
6 files changed
+94 -3

No files matched your search

@@ -11,6 +11,9 @@
*/
package vazkii.botania.api.internal;
import java.util.List;
import net.minecraft.item.crafting.IRecipe;
import vazkii.botania.api.page.LexiconPage;
import vazkii.botania.api.page.PageDummy;
@@ -23,11 +26,23 @@ public class DummyMethodHandler implements IInternalMethodHandler {
@Override
public LexiconPage imagePage(String key, String resource) {
return dummyPage(resource);
return dummyPage(key);
}
@Override
public LexiconPage recipesPage(String key, List<IRecipe> recipes) {
return dummyPage(key);
}
@Override
public LexiconPage recipePage(String key, IRecipe recipe) {
return dummyPage(key);
}
private LexiconPage dummyPage(String key) {
return new PageDummy(key);
}
}