Class StateButtonAddon

All Implemented Interfaces:
IScreenAddon, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.TabOrderedElement

public abstract class StateButtonAddon extends BasicButtonAddon
  • Constructor Details

  • Method Details

    • drawBackgroundLayer

      public void drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, 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
      Specified by:
      drawBackgroundLayer in interface IScreenAddon
      Overrides:
      drawBackgroundLayer in class BasicButtonAddon
      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(net.minecraft.client.gui.GuiGraphics guiGraphics, 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 foreground layer
      Specified by:
      drawForegroundLayer in interface IScreenAddon
      Overrides:
      drawForegroundLayer in class BasicButtonAddon
      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
    • getTooltipLines

      public List<net.minecraft.network.chat.Component> getTooltipLines()
      Description copied from interface: IScreenAddon
      A list of strings that will be drawn as a tooltip when `isInside` returns true
      Specified by:
      getTooltipLines in interface IScreenAddon
      Overrides:
      getTooltipLines in class BasicButtonAddon
      Returns:
      Returns a list of tooltip lines represented as Component's
    • getStateInfo

      public StateButtonInfo getStateInfo()
    • getState

      public abstract int getState()