Package com.mrbysco.spellchecker.util
Class SuggestionRendering
java.lang.Object
com.mrbysco.spellchecker.util.SuggestionRendering
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawInfoTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, List<String> textLines, int x, int y) Draws a tooltip for the given word suggestions at the specified position.static voidrenderSuggestions(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick, net.minecraft.client.gui.screens.ChatScreen chat) Renders the suggestions in the chat box
-
Constructor Details
-
SuggestionRendering
public SuggestionRendering()
-
-
Method Details
-
renderSuggestions
public static void renderSuggestions(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick, net.minecraft.client.gui.screens.ChatScreen chat) Renders the suggestions in the chat box- Parameters:
guiGraphics- The GuiGraphics instance used for renderingmouseX- The x position of the mousemouseY- The y position of the mousepartialTick- The partial tick timechat- The chat screen where the suggestions are rendered
-
drawInfoTooltip
public static void drawInfoTooltip(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, List<String> textLines, int x, int y) Draws a tooltip for the given word suggestions at the specified position.- Parameters:
guiGraphics- The GuiGraphics instance used for renderingfont- The font used for rendering the texttextLines- The list of text lines to display in the tooltipx- The x position where the tooltip should be drawny- The y position where the tooltip should be drawn
-