Class Bookmark
java.lang.Object
com.idark.valoria.client.gui.screen.book.Bookmark
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation
final Chapter
final net.minecraft.world.item.Item
final net.minecraft.network.chat.MutableComponent
final int
-
Constructor Summary
ConstructorDescriptionBookmark
(int index, net.minecraft.world.item.Item item, net.minecraft.network.chat.MutableComponent pTranslate, Chapter chapter) Bookmark
(int index, net.minecraft.world.item.Item item, net.minecraft.network.chat.MutableComponent pTranslate, Chapter chapter, Unlockable pUnlockablePage) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
onClick
(double mouseX, double mouseY, int guiLeft, int guiTop) void
render
(net.minecraft.client.gui.GuiGraphics gui, int guiLeft, int guiTop, int mouseX, int mouseY) void
renderTooltip
(net.minecraft.client.gui.GuiGraphics gui, net.minecraft.network.chat.MutableComponent component, int x, int y)
-
Field Details
-
BACKGROUND
public static final net.minecraft.resources.ResourceLocation BACKGROUND -
item
public final net.minecraft.world.item.Item item -
x
public final int x- See Also:
-
chapter
-
translate
public final net.minecraft.network.chat.MutableComponent translate -
unlockable
-
-
Constructor Details
-
Bookmark
public Bookmark(int index, net.minecraft.world.item.Item item, @Nullable net.minecraft.network.chat.MutableComponent pTranslate, Chapter chapter) -
Bookmark
public Bookmark(int index, net.minecraft.world.item.Item item, @Nullable net.minecraft.network.chat.MutableComponent pTranslate, Chapter chapter, Unlockable pUnlockablePage)
-
-
Method Details
-
render
public void render(net.minecraft.client.gui.GuiGraphics gui, int guiLeft, int guiTop, int mouseX, int mouseY) -
getColumn
public int getColumn() -
getChapter
-
onClick
public boolean onClick(double mouseX, double mouseY, int guiLeft, int guiTop) -
renderTooltip
public void renderTooltip(net.minecraft.client.gui.GuiGraphics gui, net.minecraft.network.chat.MutableComponent component, int x, int y) -
isUnlocked
public boolean isUnlocked()
-