mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Added easy Booklet Chapters to the API
This commit is contained in:
parent
98e24f4ef4
commit
116dc6d174
2 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
||||||
package de.ellpeck.actuallyadditions.api.internal;
|
package de.ellpeck.actuallyadditions.api.internal;
|
||||||
|
|
||||||
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
|
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
|
||||||
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletChapter;
|
||||||
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletEntry;
|
||||||
import de.ellpeck.actuallyadditions.api.recipe.CoffeeIngredient;
|
import de.ellpeck.actuallyadditions.api.recipe.CoffeeIngredient;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
@ -45,4 +47,6 @@ public interface IMethodHandler{
|
||||||
BookletPage generateCraftingPage(int id, IRecipe... recipes);
|
BookletPage generateCraftingPage(int id, IRecipe... recipes);
|
||||||
|
|
||||||
BookletPage generateFurnacePage(int id, ItemStack input, ItemStack result);
|
BookletPage generateFurnacePage(int id, ItemStack input, ItemStack result);
|
||||||
|
|
||||||
|
IBookletChapter generateBookletChapter(String unlocalizedName, IBookletEntry entry, ItemStack displayStack, BookletPage... pages);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,13 @@
|
||||||
package de.ellpeck.actuallyadditions.mod.misc;
|
package de.ellpeck.actuallyadditions.mod.misc;
|
||||||
|
|
||||||
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
|
import de.ellpeck.actuallyadditions.api.booklet.BookletPage;
|
||||||
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletChapter;
|
||||||
|
import de.ellpeck.actuallyadditions.api.booklet.IBookletEntry;
|
||||||
import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor;
|
import de.ellpeck.actuallyadditions.api.internal.IAtomicReconstructor;
|
||||||
import de.ellpeck.actuallyadditions.api.internal.IMethodHandler;
|
import de.ellpeck.actuallyadditions.api.internal.IMethodHandler;
|
||||||
import de.ellpeck.actuallyadditions.api.recipe.CoffeeIngredient;
|
import de.ellpeck.actuallyadditions.api.recipe.CoffeeIngredient;
|
||||||
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;
|
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;
|
||||||
|
import de.ellpeck.actuallyadditions.mod.booklet.chapter.BookletChapter;
|
||||||
import de.ellpeck.actuallyadditions.mod.booklet.page.PageCrafting;
|
import de.ellpeck.actuallyadditions.mod.booklet.page.PageCrafting;
|
||||||
import de.ellpeck.actuallyadditions.mod.booklet.page.PageFurnace;
|
import de.ellpeck.actuallyadditions.mod.booklet.page.PageFurnace;
|
||||||
import de.ellpeck.actuallyadditions.mod.booklet.page.PagePicture;
|
import de.ellpeck.actuallyadditions.mod.booklet.page.PagePicture;
|
||||||
|
@ -209,4 +212,9 @@ public class MethodHandler implements IMethodHandler{
|
||||||
public BookletPage generateFurnacePage(int id, ItemStack input, ItemStack result){
|
public BookletPage generateFurnacePage(int id, ItemStack input, ItemStack result){
|
||||||
return new PageFurnace(id, input, result);
|
return new PageFurnace(id, input, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IBookletChapter generateBookletChapter(String unlocalizedName, IBookletEntry entry, ItemStack displayStack, BookletPage... pages){
|
||||||
|
return new BookletChapter(unlocalizedName, entry, displayStack, pages);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue