public interface IBookCategory
| 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) |
net.minecraft.item.ItemStack getStack()
ItemStack that represents this category at the front page.IBookCategory setStack(net.minecraft.item.ItemStack stack)
IBookCategory addEntry(IBookEntry entry)
IBookCategory addEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
name - A unique name for this entry.stack - The stack that will be displayed next to the entry title at the category page.IBookEntryBuilder createEntry(java.lang.String name)
At the end of your creation you have to call IBookEntryBuilder.addToCategory() to add the entry to this
category.
name - A unique name for this entry.IBookEntryBuilder createEntry(java.lang.String name, net.minecraft.item.ItemStack stack)
At the end of your creation you have to call IBookEntryBuilder.addToCategory() to add the entry to this
category.
name - A unique name for this entry.stack - The stack that will be displayed next to the entry title at the category page.java.util.Collection<IBookEntry> getEntries()
@Nullable IBookEntry getEntry(java.lang.String name)
java.lang.String getLocalizedName()
java.lang.String getTooltip()
java.lang.String getName()