Class GuideTooltips
java.lang.Object
net.ixdarklord.folios.internal.client.GuideTooltips
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidframe(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book) A tooltip's ground and gilt frame in the book's colours, round content from (x, y),widthbyheight: for anything shown as the books' tooltips are (a hint, say).static voidframe(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha) Asframe(GuiGraphicsExtractor, int, int, int, int, GuideBook), faded toalpha(0 to 255).static voidframe(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha, int inset) As the others, the frameinsetpixels out from the content each way (12 for a tooltip's).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 voidshow(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book) Shows tooltip lines in the book's colours, over everything drawn so far: the first as a name, the rest quieter.static voidshow(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book, int ruleBefore) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook), with a soft rule above the line atruleBefore(none for -1): what is said set apart from what to do.static inttitleColor(GuideBook book) The text colour of a tooltip's name in a book's colours.
-
Method Details
-
of
public static List<net.minecraft.network.chat.Component> of(net.minecraft.network.chat.Component title, @Nullable @Nullable net.minecraft.network.chat.Component detail) A name, and a line under it saying more; null for none. -
titleColor
The text colour of a tooltip's name in a book's colours. -
frame
public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book) A tooltip's ground and gilt frame in the book's colours, round content from (x, y),widthbyheight: for anything shown as the books' tooltips are (a hint, say). -
frame
public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha) Asframe(GuiGraphicsExtractor, int, int, int, int, GuideBook), faded toalpha(0 to 255). -
frame
public static void frame(GuiGraphicsExtractor graphics, int x, int y, int width, int height, GuideBook book, int alpha, int inset) As the others, the frameinsetpixels out from the content each way (12 for a tooltip's). -
show
public static void show(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook 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(GuiGraphicsExtractor graphics, net.minecraft.client.gui.Font font, List<net.minecraft.network.chat.Component> lines, int mouseX, int mouseY, GuideBook book, int ruleBefore) Asshow(GuiGraphicsExtractor, Font, List, int, int, GuideBook), with a soft rule above the line atruleBefore(none for -1): what is said set apart from what to do.
-