mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 06:52:58 +00:00
Some intital work in displaying recipes on the Lexicon.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user