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

      public static void preloadVanillaItemModels()
      Starts loading the shared isolated runtime used by ItemModelResourceMode.VANILLA_ONLY.

      Loading is asynchronous. Vanilla-only components paint their ordinary retained box but omit the model until isVanillaItemModelsReady() returns true.

    • isVanillaItemModelsReady

      public static boolean isVanillaItemModelsReady()
      Returns whether the isolated built-in item-model runtime is ready.
      Returns:
      true when vanilla-only models can render
    • 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)