Search in sources :

Example 1 with GuiScreenBook

use of net.minecraft.client.gui.GuiScreenBook in project BetterStorage by copygirl.

the class ItemPresentBook method showBookScreen.

@SideOnly(Side.CLIENT)
public static void showBookScreen(EntityPlayer player, NBTTagList pages) {
    ItemStack stack = new ItemStack(Items.written_book);
    StackUtils.set(stack, pages, "pages");
    Minecraft.getMinecraft().displayGuiScreen(new GuiScreenBook(player, stack, false));
}
Also used : ItemStack(net.minecraft.item.ItemStack) GuiScreenBook(net.minecraft.client.gui.GuiScreenBook) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

SideOnly (cpw.mods.fml.relauncher.SideOnly)1 GuiScreenBook (net.minecraft.client.gui.GuiScreenBook)1 ItemStack (net.minecraft.item.ItemStack)1