public interface 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) |
default IBookEntryBuilder |
createSubEntry(java.lang.String name)
Creates a sub entry.
|
IBookEntryBuilder |
createSubEntry(java.lang.String name,
net.minecraft.item.ItemStack stack)
Creates a sub entry.
|
IBookEntryBuilder |
setContent(BookContent[][] content)
Sets the content of the entry.
|
IBookEntryBuilder |
setLoader(IBookPageFactory loader) |
IBookEntryBuilder |
setStack(net.minecraft.item.ItemStack stack) |
IBookEntryBuilder |
setTitle(java.lang.String title)
Sets the localized name of entry.
|
IBookEntryBuilder setContent(BookContent[][] content)
IBookEntryBuilder setTitle(java.lang.String title)
IBookEntryBuilder setStack(net.minecraft.item.ItemStack stack)
IBookEntryBuilder setLoader(IBookPageFactory loader)
default IBookEntryBuilder createSubEntry(java.lang.String name)
Important: You not have to call addToCategory() at the end of the creation of the sub entry
name - The unique name of the sub entry.IBookEntryBuilder createSubEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
Important: You not have to call addToCategory() at the end of the creation of the sub entry
name - The unique name of the sub entry.stack - The stack that represents the sub entry.IBookEntry build(@Nullable IBookEntry parent)
IBookEntry build()
IBookCategory addToCategory()