public class GuideAPI
extends java.lang.Object
| Constructor and Description |
|---|
GuideAPI() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<net.minecraft.util.ResourceLocation,Book> |
getBooks() |
static java.util.Map<Book,net.minecraft.item.ItemStack> |
getBookToStack() |
static java.util.List<Book> |
getIndexedBooks() |
static java.util.Map<Book,com.google.common.collect.Multimap<java.lang.Class<? extends net.minecraft.block.Block>,IInfoRenderer>> |
getInfoRenderers() |
static net.minecraft.item.ItemStack |
getStackFromBook(Book book)
Obtains a new ItemStack associated with the provided book.
|
static void |
initialize() |
static void |
registerInfoRenderer(Book book,
IInfoRenderer infoRenderer,
java.lang.Class<? extends net.minecraft.block.Block>... blockClasses)
Registers an IInfoRenderer
|
static void |
setModel(Book book)
Helper method for setting a model for your book.
|
static void |
setModel(Book book,
net.minecraft.util.ResourceLocation modelLoc,
java.lang.String variantName)
Helper method for setting a model for your book.
|
public static net.minecraft.item.ItemStack getStackFromBook(Book book)
book - - The book to get an ItemStack for.public static void registerInfoRenderer(Book book, IInfoRenderer infoRenderer, java.lang.Class<? extends net.minecraft.block.Block>... blockClasses)
infoRenderer - - The renderer to registerblockClasses - - The block classes that this should draw forpublic static void setModel(Book book, net.minecraft.util.ResourceLocation modelLoc, java.lang.String variantName)
Use if you wish to use a custom model.
Only call AFTER you have registered your book.
book - - Book to set model formodelLoc - - Location of the model filevariantName - - Variant to usepublic static void setModel(Book book)
Use if you wish to use the default model with color.
Only call AFTER you have registered your book.
book - - Book to set model forpublic static void initialize()
public static java.util.Map<net.minecraft.util.ResourceLocation,Book> getBooks()
public static java.util.Map<Book,net.minecraft.item.ItemStack> getBookToStack()
public static java.util.Map<Book,com.google.common.collect.Multimap<java.lang.Class<? extends net.minecraft.block.Block>,IInfoRenderer>> getInfoRenderers()
public static java.util.List<Book> getIndexedBooks()