Class TextFieldScreenAddon

java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.TextFieldScreenAddon
All Implemented Interfaces:
IScreenAddon

public class TextFieldScreenAddon extends BasicScreenAddon
  • Constructor Summary

    Constructors
    Constructor
    Description
    TextFieldScreenAddon​(int posX, int posY)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawBackgroundLayer​(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)
    Draws the component in the background layer
    void
    drawForegroundLayer​(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY)
    Draws the component in the foreground layer
    net.minecraft.client.gui.components.events.GuiEventListener
     
     
    int
     
    int
     
    void
    init​(int guiX, int guiY)
    Called when init is called in the screen.
    boolean
    isInside​(net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY)
    A check to know if the mouse is inside of the component to draw the tooltip lines
    boolean
    keyPressed​(int key, int scan, int modifiers)
    Called when a key is pressed
    void
    setActive​(boolean active)
     

    Methods inherited from class com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon

    getPosX, getPosY, setPosX, setPosY

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.hrznstudio.titanium.api.client.IScreenAddon

    getTooltipLines, isBackground
  • Constructor Details

    • TextFieldScreenAddon

      public TextFieldScreenAddon​(int posX, int posY)
  • Method Details

    • drawBackgroundLayer

      public void drawBackgroundLayer​(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY, float partialTicks)
      Description copied from interface: IScreenAddon
      Draws the component in the background layer
      screen - The current open screen
      provider - The current asset provider used in the GUI
      guiX - The gui X in the top left corner
      guiY - The gui Y in the top left corner
      mouseX - The current mouse X
      mouseY - The current mouse Y
      partialTicks - Partial ticks
    • drawForegroundLayer

      public void drawForegroundLayer​(com.mojang.blaze3d.vertex.PoseStack stack, net.minecraft.client.gui.screens.Screen screen, IAssetProvider provider, int guiX, int guiY, int mouseX, int mouseY)
      Description copied from interface: IScreenAddon
      Draws the component in the foreground layer
      screen - The current open screen
      provider - The current asset provider used in the GUI
      guiX - The gui X in the top left corner
      guiY - The gui Y in the top left corner
      mouseX - The current mouse X
      mouseY - The current mouse Y
    • init

      public void init​(int guiX, int guiY)
      Description copied from interface: IScreenAddon
      Called when init is called in the screen.
      Parameters:
      guiX - the left point of the Screen
      guiY - the top point of the Screen
    • isInside

      public boolean isInside​(net.minecraft.client.gui.screens.Screen screen, double mouseX, double mouseY)
      Description copied from interface: IScreenAddon
      A check to know if the mouse is inside of the component to draw the tooltip lines
      Specified by:
      isInside in interface IScreenAddon
      Overrides:
      isInside in class BasicScreenAddon
      Parameters:
      screen - The current open screen
      mouseX - The current mouse X
      mouseY - The current mouse Y
      Returns:
      True if the mouse is inside the component
    • getXSize

      public int getXSize()
      Specified by:
      getXSize in class BasicScreenAddon
    • getYSize

      public int getYSize()
      Specified by:
      getYSize in class BasicScreenAddon
    • setActive

      public void setActive​(boolean active)
    • keyPressed

      public boolean keyPressed​(int key, int scan, int modifiers)
      Description copied from interface: IScreenAddon
      Called when a key is pressed
      Parameters:
      key - The key pressed
      scan - ??
      modifiers - ??
      Returns:
      if something was done
    • getGuiListener

      public net.minecraft.client.gui.components.events.GuiEventListener getGuiListener()
    • getText

      public String getText()