public class BookEntryBuilder extends java.lang.Object implements IBookEntryBuilder
| Modifier and Type | Method and Description |
|---|---|
IBookCategory |
addToCategory()
Builds the entry and adds it to the category.
|
IBookEntry |
build()
Builds a entry with the current information.
|
IBookEntry |
build(IBookEntry parent) |
BookEntryBuilder |
createSubEntry(java.lang.String name,
net.minecraft.item.ItemStack stack)
Creates a sub entry.
|
IBookEntryBuilder |
setContent(BookContent[][] content)
Sets the content of the entry.
|
BookEntryBuilder |
setLoader(IBookPageFactory loader) |
BookEntryBuilder |
setStack(net.minecraft.item.ItemStack stack) |
IBookEntryBuilder |
setTitle(java.lang.String title)
Sets the localized name of entry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSubEntrypublic BookEntryBuilder setStack(net.minecraft.item.ItemStack stack)
setStack in interface IBookEntryBuilderpublic BookEntryBuilder setLoader(IBookPageFactory loader)
setLoader in interface IBookEntryBuilderpublic BookEntryBuilder createSubEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
IBookEntryBuilder
Important: You not have to call IBookEntryBuilder.addToCategory() at the end of the creation of the sub entry
createSubEntry in interface IBookEntryBuildername - The unique name of the sub entry.stack - The stack that represents the sub entry.public IBookEntryBuilder setContent(BookContent[][] content)
IBookEntryBuildersetContent in interface IBookEntryBuilderpublic IBookEntryBuilder setTitle(java.lang.String title)
IBookEntryBuildersetTitle in interface IBookEntryBuilderpublic IBookEntry build(@Nullable IBookEntry parent)
build in interface IBookEntryBuilderpublic IBookEntry build()
IBookEntryBuilderbuild in interface IBookEntryBuilderpublic IBookCategory addToCategory()
IBookEntryBuilderaddToCategory in interface IBookEntryBuilder