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.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 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 rendering
      mouseX - The x position of the mouse
      mouseY - The y position of the mouse
      partialTick - The partial tick time
      chat - 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 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