public abstract class BookletPage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
arePageStacksWildcard |
protected IBookletChapter |
chapter |
protected boolean |
hasNoText |
protected java.util.HashMap<java.lang.String,java.lang.String> |
textReplacements |
| Constructor and Description |
|---|
BookletPage() |
| Modifier and Type | Method and Description |
|---|---|
BookletPage |
addTextReplacement(java.lang.String text,
int replacement) |
BookletPage |
addTextReplacement(java.lang.String text,
java.lang.String replacement) |
IBookletChapter |
getChapter() |
abstract java.lang.String |
getClickToSeeRecipeString()
Gets the text that is displayed when an Item is hovered over that can be clicked on to go to its page
|
abstract int |
getID()
The ID of the page, for the page number etc.
|
abstract net.minecraft.item.ItemStack[] |
getItemStacksForPage()
Gets the ItemStacks that are part of or displayed on this page (for NEI Handler, right-click function etc.)
|
abstract java.lang.String |
getText()
Gets the localized text to be displayed
|
boolean |
onActionPerformed(IBookletGui gui,
net.minecraft.client.gui.GuiButton button) |
void |
onClosed(IBookletGui gui) |
void |
onOpened(IBookletGui gui) |
abstract void |
render(IBookletGui gui,
int mouseX,
int mouseY,
int ticksElapsed,
boolean mousePressed)
This render method ica called after super.drawScreen() is called in the GUI
|
abstract void |
renderPre(IBookletGui gui,
int mouseX,
int mouseY,
int ticksElapsed,
boolean mousePressed)
This render method ica called before super.drawScreen() is called in the GUI
|
void |
setChapter(IBookletChapter chapter) |
BookletPage |
setNoText() |
BookletPage |
setPageStacksWildcard()
Sets the stacks on the page to be wildcard, meaning the metadata doesn't matter
This applies for all stacks at once
|
abstract void |
updateScreen(int ticksElapsed)
Equivalent to updateScreen() in GuiScreen
|
public boolean arePageStacksWildcard
protected IBookletChapter chapter
protected final java.util.HashMap<java.lang.String,java.lang.String> textReplacements
protected boolean hasNoText
public void onOpened(IBookletGui gui)
public void onClosed(IBookletGui gui)
public boolean onActionPerformed(IBookletGui gui, net.minecraft.client.gui.GuiButton button)
public abstract int getID()
public abstract java.lang.String getText()
public abstract void renderPre(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed)
public abstract void render(IBookletGui gui, int mouseX, int mouseY, int ticksElapsed, boolean mousePressed)
public abstract void updateScreen(int ticksElapsed)
public abstract net.minecraft.item.ItemStack[] getItemStacksForPage()
public abstract java.lang.String getClickToSeeRecipeString()
public IBookletChapter getChapter()
public void setChapter(IBookletChapter chapter)
public BookletPage setPageStacksWildcard()
public BookletPage setNoText()
public BookletPage addTextReplacement(java.lang.String text, int replacement)
public BookletPage addTextReplacement(java.lang.String text, java.lang.String replacement)