Search in sources :

Example 1 with PageBrewingRecipe

use of amerifrance.guideapi.page.PageBrewingRecipe in project Guide-API by TeamAmeriFrance.

the class TestBook2 method buildBook.

@Nullable
@Override
public Book buildBook() {
    book = new Book();
    book.setAuthor("TehNut");
    book.setColor(Color.GREEN);
    book.setDisplayName("Display Name");
    book.setTitle("Title message");
    book.setWelcomeMessage("Is this still a thing?");
    CategoryAbstract testCategory = new CategoryItemStack("test.category.name", new ItemStack(Items.BANNER)).withKeyBase("guideapi");
    testCategory.addEntry("entry", new EntryItemStack("test.entry.name", new ItemStack(Items.POTATO)));
    testCategory.getEntry("entry").addPage(new PageText("Hello, this is\nsome text"));
    testCategory.getEntry("entry").addPage(new PageFurnaceRecipe(Blocks.COBBLESTONE));
    testCategory.getEntry("entry").addPage(new PageIRecipe(new ShapedOreRecipe(Items.ACACIA_BOAT, "X X", "XXX", 'X', "plankWood")));
    testCategory.getEntry("entry").addPage(new PageBrewingRecipe(new BrewingRecipe(PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.AWKWARD), new ItemStack(Items.SPECKLED_MELON), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.HEALING))));
    book.addCategory(testCategory);
    book.setRegistryName(new ResourceLocation("guideapi", "test_book2"));
    return book;
}
Also used : CategoryAbstract(amerifrance.guideapi.api.impl.abstraction.CategoryAbstract) PageIRecipe(amerifrance.guideapi.page.PageIRecipe) Book(amerifrance.guideapi.api.impl.Book) GuideBook(amerifrance.guideapi.api.GuideBook) IGuideBook(amerifrance.guideapi.api.IGuideBook) PageFurnaceRecipe(amerifrance.guideapi.page.PageFurnaceRecipe) ShapedOreRecipe(net.minecraftforge.oredict.ShapedOreRecipe) ResourceLocation(net.minecraft.util.ResourceLocation) PageText(amerifrance.guideapi.page.PageText) EntryItemStack(amerifrance.guideapi.entry.EntryItemStack) CategoryItemStack(amerifrance.guideapi.category.CategoryItemStack) PageBrewingRecipe(amerifrance.guideapi.page.PageBrewingRecipe) EntryItemStack(amerifrance.guideapi.entry.EntryItemStack) ItemStack(net.minecraft.item.ItemStack) CategoryItemStack(amerifrance.guideapi.category.CategoryItemStack) PageBrewingRecipe(amerifrance.guideapi.page.PageBrewingRecipe) BrewingRecipe(net.minecraftforge.common.brewing.BrewingRecipe) Nullable(javax.annotation.Nullable)

Aggregations

GuideBook (amerifrance.guideapi.api.GuideBook)1 IGuideBook (amerifrance.guideapi.api.IGuideBook)1 Book (amerifrance.guideapi.api.impl.Book)1 CategoryAbstract (amerifrance.guideapi.api.impl.abstraction.CategoryAbstract)1 CategoryItemStack (amerifrance.guideapi.category.CategoryItemStack)1 EntryItemStack (amerifrance.guideapi.entry.EntryItemStack)1 PageBrewingRecipe (amerifrance.guideapi.page.PageBrewingRecipe)1 PageFurnaceRecipe (amerifrance.guideapi.page.PageFurnaceRecipe)1 PageIRecipe (amerifrance.guideapi.page.PageIRecipe)1 PageText (amerifrance.guideapi.page.PageText)1 Nullable (javax.annotation.Nullable)1 ItemStack (net.minecraft.item.ItemStack)1 ResourceLocation (net.minecraft.util.ResourceLocation)1 BrewingRecipe (net.minecraftforge.common.brewing.BrewingRecipe)1 ShapedOreRecipe (net.minecraftforge.oredict.ShapedOreRecipe)1