Interface GuiHost


@Experimental public interface GuiHost
Host presentation metrics the widget kit needs for layout: the GUI zoom multiplier and the macOS notch inset. Backed by the client's ClickGUI settings; the built-in default is a 1× scale with no notch.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static GuiHost
    get()
     
    static void
    Installed once by the client at startup.
    int
    Manual macOS notch inset in GUI pixels, or 0 to auto-detect.
    double
    GUI zoom multiplier applied over the Minecraft GUI scale.
  • Method Details

    • uiScale

      double uiScale()
      GUI zoom multiplier applied over the Minecraft GUI scale.
    • notchHeight

      int notchHeight()
      Manual macOS notch inset in GUI pixels, or 0 to auto-detect.
    • get

      static GuiHost get()
    • install

      static void install(GuiHost host)
      Installed once by the client at startup.