Class RenderLibGui

java.lang.Object
com.render.api.RenderLibGui

public final class RenderLibGui extends Object
Opens and closes managed full-screen GUI views.
  • Method Details

    • bootstrap

      public static void bootstrap()
      Initializes shared GUI runtime hooks.
    • clearAssetCache

      public static void clearAssetCache()
      Releases cached dynamic image and SVG textures. They are reloaded on demand.
    • open

      public static void open(GuiView view)
      Opens the supplied view if it is not already the active managed screen.
      Parameters:
      view - view to display
    • close

      public static void close(GuiView view)
      Requests that the supplied view close if it is currently open.
      Parameters:
      view - view to close
    • isOpen

      public static boolean isOpen(GuiView view)
      Returns whether the supplied view is currently open.
      Parameters:
      view - view to test
      Returns:
      true when the active screen wraps the supplied view
    • showToast

      public static ToastHandle showToast(GuiView view, ToastComponent toast)
      Shows a managed toast notification on the supplied view.
      Parameters:
      view - view that should own the toast
      toast - toast to display
      Returns:
      handle used to dismiss or inspect the toast
    • isDevtoolsToggle

      public static boolean isDevtoolsToggle(int keyCode)