Class FoliosTooltips

java.lang.Object
net.ixdarklord.folios.internal.client.FoliosTooltips

public final class FoliosTooltips extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    A tooltip's ground in a book's colours: its own, else its cover's darkened.
    static int
    The text colour of a tooltip's quieter lines in a book's colours.
    static void
    frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book)
    A tooltip's ground and gilt frame in the book's colours, round content from (x, y), width by height: for anything shown as the books' tooltips are (a hint, say).
    static void
    frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book, int alpha)
    static void
    frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book, int alpha, int inset)
    As the others, the frame inset pixels out from the content each way (12 for a tooltip's).
    static int
    A tooltip's frame in a book's colours: its own, else gilt warmed by its accent.
    static List<net.minecraft.network.chat.Component>
    of(net.minecraft.network.chat.Component title, @Nullable net.minecraft.network.chat.Component detail)
    A name, and a line under it saying more; null for none.
    static void
    show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book)
    Shows tooltip lines in the book's colours, over everything drawn so far: the first as a name, the rest quieter.
    static void
    show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book, int ruleBefore)
    As show(GuiGraphicsExtractor, Font, List, int, int, FoliosBook), with a soft rule above the line at ruleBefore (none for -1): what is said set apart from what to do.
    static void
    show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book, int ruleBefore, float scale)
    As show(GuiGraphicsExtractor, Font, List, int, int, FoliosBook, int), drawn scale times larger (no smaller than as it is): to match a book drawn larger than the GUI scale, kept on the screen all the same.
    static int
    The text colour of a tooltip's name in a book's colours.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static List<net.minecraft.network.chat.Component> of(net.minecraft.network.chat.Component title, @Nullable net.minecraft.network.chat.Component detail)
      A name, and a line under it saying more; null for none.
    • titleColor

      public static int titleColor(FoliosBook book)
      The text colour of a tooltip's name in a book's colours.
    • backgroundColor

      public static int backgroundColor(FoliosBook book)
      A tooltip's ground in a book's colours: its own, else its cover's darkened.
    • frameColor

      public static int frameColor(FoliosBook book)
      A tooltip's frame in a book's colours: its own, else gilt warmed by its accent.
    • detailColor

      public static int detailColor(FoliosBook book)
      The text colour of a tooltip's quieter lines in a book's colours.
    • frame

      public static void frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book)
      A tooltip's ground and gilt frame in the book's colours, round content from (x, y), width by height: for anything shown as the books' tooltips are (a hint, say).
    • frame

      public static void frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book, int alpha)
    • frame

      public static void frame(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x, int y, int width, int height, FoliosBook book, int alpha, int inset)
      As the others, the frame inset pixels out from the content each way (12 for a tooltip's).
    • show

      public static void show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book)
      Shows tooltip lines in the book's colours, over everything drawn so far: the first as a name, the rest quieter.
    • show

      public static void show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book, int ruleBefore)
      As show(GuiGraphicsExtractor, Font, List, int, int, FoliosBook), with a soft rule above the line at ruleBefore (none for -1): what is said set apart from what to do.
    • show

      public static void show(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, FoliosBook book, int ruleBefore, float scale)
      As show(GuiGraphicsExtractor, Font, List, int, int, FoliosBook, int), drawn scale times larger (no smaller than as it is): to match a book drawn larger than the GUI scale, kept on the screen all the same.