Class SuggestionRendering
java.lang.Object
com.mrbysco.spellchecker.util.SuggestionRendering
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawInfoTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, 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 voidextractSuggestions(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick, net.minecraft.client.gui.components.EditBox editBox) Renders the suggestions in the chat box
-
Constructor Details
-
SuggestionRendering
public SuggestionRendering()
-
-
Method Details
-
extractSuggestions
public static void extractSuggestions(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick, net.minecraft.client.gui.components.EditBox editBox) Renders the suggestions in the chat box- Parameters:
graphics- The GuiGraphicsExtractor instance used for renderingmouseX- The x position of the mousemouseY- The y position of the mousepartialTick- The partial tick timeeditBox- The edit box where the suggestions are rendered
-
drawInfoTooltip
public static void drawInfoTooltip(net.minecraft.client.gui.GuiGraphicsExtractor graphics, 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:
graphics- The GuiGraphicsExtractor 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
-