public class GuideRegistry
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.google.gson.GsonBuilder |
bookBuilder
The GsonBuilder used by Guide-API to create Books from Jsons.
|
| Constructor and Description |
|---|
GuideRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static Book |
getBook(int index) |
static java.util.List<Book> |
getBookList() |
static int |
getIndexOf(Book book) |
static net.minecraft.item.ItemStack |
getItemStackForBook(Book book) |
static int |
getSize() |
static boolean |
isEmpty() |
static void |
registerBook(Book book) |
public static com.google.gson.GsonBuilder bookBuilder
public static void registerBook(Book book)
book - - The book to registerpublic static Book getBook(int index)
index - - The index of the bookpublic static int getIndexOf(Book book)
book - - The book of which to get the indexpublic static int getSize()
public static boolean isEmpty()
public static net.minecraft.item.ItemStack getItemStackForBook(Book book)
book - - The book of which to get the itemstackpublic static java.util.List<Book> getBookList()