java.lang.Object
com.idark.valoria.client.gui.screen.book.Bookmark

public class Bookmark extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceLocation
     
    final Chapter
     
    final net.minecraft.world.item.Item
     
    final net.minecraft.network.chat.MutableComponent
     
     
    final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bookmark(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 Type
    Method
    Description
     
    int
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public final Chapter chapter
    • translate

      public final net.minecraft.network.chat.MutableComponent translate
    • unlockable

      public Unlockable 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

      public Chapter 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()