public class BookCategory extends java.lang.Object implements IBookCategory
| Constructor and Description |
|---|
BookCategory(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
IBookCategory |
addEntry(IBookEntry entry)
Adds an custom entry to the category.
|
IBookCategory |
addEntry(java.lang.String name,
net.minecraft.item.ItemStack stack)
Adds an entry with the given name and the given icon to the category.
|
IBookEntryBuilder |
createEntry(java.lang.String name)
Creates a entry builder with the given name.
|
IBookEntryBuilder |
createEntry(java.lang.String name,
net.minecraft.item.ItemStack stack)
Creates a entry builder with the given name and the given icon.
|
java.util.Collection<IBookEntry> |
getEntries() |
IBookEntry |
getEntry(java.lang.String name) |
java.lang.String |
getLocalizedName() |
java.lang.String |
getName() |
net.minecraft.item.ItemStack |
getStack() |
java.lang.String |
getTooltip()
Currently unused
|
IBookCategory |
setStack(net.minecraft.item.ItemStack stack) |
public net.minecraft.item.ItemStack getStack()
getStack in interface IBookCategoryItemStack that represents this category at the front page.public IBookCategory setStack(net.minecraft.item.ItemStack stack)
setStack in interface IBookCategorypublic IBookCategory addEntry(IBookEntry entry)
IBookCategoryaddEntry in interface IBookCategorypublic IBookCategory addEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
IBookCategoryaddEntry in interface IBookCategoryname - A unique name for this entry.stack - The stack that will be displayed next to the entry title at the category page.public IBookEntryBuilder createEntry(java.lang.String name)
IBookCategory
At the end of your creation you have to call IBookEntryBuilder.addToCategory() to add the entry to this
category.
createEntry in interface IBookCategoryname - A unique name for this entry.public IBookEntryBuilder createEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
IBookCategory
At the end of your creation you have to call IBookEntryBuilder.addToCategory() to add the entry to this
category.
createEntry in interface IBookCategoryname - A unique name for this entry.stack - The stack that will be displayed next to the entry title at the category page.public java.util.Collection<IBookEntry> getEntries()
getEntries in interface IBookCategory@Nullable public IBookEntry getEntry(java.lang.String name)
getEntry in interface IBookCategorypublic java.lang.String getLocalizedName()
getLocalizedName in interface IBookCategorypublic java.lang.String getTooltip()
IBookCategorygetTooltip in interface IBookCategorypublic java.lang.String getName()
getName in interface IBookCategory