Class SuggestionRendering

java.lang.Object
com.mrbysco.spellchecker.util.SuggestionRendering

public class SuggestionRendering extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 rendering
      mouseX - The x position of the mouse
      mouseY - The y position of the mouse
      partialTick - The partial tick time
      editBox - 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 rendering
      font - The font used for rendering the text
      textLines - The list of text lines to display in the tooltip
      x - The x position where the tooltip should be drawn
      y - The y position where the tooltip should be drawn