public class Book
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
author |
java.awt.Color |
bookColor |
java.util.List<CategoryAbstract> |
categoryList |
java.lang.String[] |
chestHooks |
boolean |
hasCustomModel |
boolean |
isLostBook |
int |
lootChance |
net.minecraft.util.ResourceLocation |
outlineTexture |
net.minecraft.util.ResourceLocation |
pageTexture |
boolean |
spawnWithBook |
java.lang.String |
unlocBookTitle |
java.lang.String |
unlocDisplayName |
java.lang.String |
unlocWelcomeMessage |
| Constructor and Description |
|---|
Book(java.util.List<CategoryAbstract> categoryList,
java.lang.String unlocBookTitle,
java.lang.String unlocWelcomeMessage,
java.lang.String unlocDisplayName,
java.lang.String author,
net.minecraft.util.ResourceLocation pageTexture,
net.minecraft.util.ResourceLocation outlineTexture,
boolean hasCustomModel,
java.awt.Color bookColor,
boolean spawnWithBook,
boolean isLostBook,
int lootChance,
java.lang.String[] chestHooks) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(CategoryAbstract category) |
void |
addCategoryList(java.util.List<CategoryAbstract> categories) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getLocalizedBookTitle() |
java.lang.String |
getLocalizedDisplayName() |
java.lang.String |
getLocalizedWelcomeMessage() |
int |
hashCode() |
void |
removeCategory(CategoryAbstract category) |
void |
removeCategoryList(java.util.List<CategoryAbstract> categories) |
public java.util.List<CategoryAbstract> categoryList
public java.lang.String unlocBookTitle
public java.lang.String unlocWelcomeMessage
public java.lang.String unlocDisplayName
public java.lang.String author
public net.minecraft.util.ResourceLocation pageTexture
public net.minecraft.util.ResourceLocation outlineTexture
public boolean hasCustomModel
public java.awt.Color bookColor
public boolean spawnWithBook
public boolean isLostBook
public int lootChance
public java.lang.String[] chestHooks
public Book(java.util.List<CategoryAbstract> categoryList, java.lang.String unlocBookTitle, java.lang.String unlocWelcomeMessage, java.lang.String unlocDisplayName, java.lang.String author, net.minecraft.util.ResourceLocation pageTexture, net.minecraft.util.ResourceLocation outlineTexture, boolean hasCustomModel, java.awt.Color bookColor, boolean spawnWithBook, boolean isLostBook, int lootChance, java.lang.String[] chestHooks)
categoryList - - Category List with all your informationunlocBookTitle - - Unlocalized name for a book titleunlocWelcomeMessage - - Unlocalized welcome messageunlocDisplayName - - Unlocalized item display nameauthor - - Author of the book. Meant for the modid/modname so the book is displayed when the user searches the mod in NEIpageTexture - - Texture for book's pageoutlineTexture - - Texture for book outlinehasCustomModel - - Whether or not the book has a custom model. Disables item coloring. If you do not set this, but still register a custom model,
the new model will take effect, but it will still be colored.bookColor - - Color for the book. If an itemTexture is set, only affects GUI colorspawnWithBook - - Whether a player gets this book on the first time joining a worldisLostBook - - Pages become dungeon lootlootChance - - Chance for pages to generate as loot. 1 = Golden Apples, 100 = Iron Ingot, 1000 = Basically override everythingchestHooks - - Types of dungeon chests to generate pages in. See ChestGenHookspublic void addCategory(CategoryAbstract category)
category - - Add this categorypublic void removeCategory(CategoryAbstract category)
category - - Remove this categorypublic void addCategoryList(java.util.List<CategoryAbstract> categories)
categories - - Add these categoriespublic void removeCategoryList(java.util.List<CategoryAbstract> categories)
categories - - Remove these categoriespublic java.lang.String getLocalizedBookTitle()
public java.lang.String getLocalizedWelcomeMessage()
public java.lang.String getLocalizedDisplayName()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object