Class RenderLibGui
java.lang.Object
com.render.api.RenderLibGui
Opens and closes managed full-screen GUI views.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidInitializes shared GUI runtime hooks.static voidReleases cached dynamic image and SVG textures.static voidRequests that the supplied view close if it is currently open.static booleanisDevtoolsToggle(int keyCode) static booleanReturns whether the supplied view is currently open.static voidOpens the supplied view if it is not already the active managed screen.static ToastHandleshowToast(GuiView view, ToastComponent toast) Shows a managed toast notification on the supplied view.
-
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
Opens the supplied view if it is not already the active managed screen.- Parameters:
view- view to display
-
close
Requests that the supplied view close if it is currently open.- Parameters:
view- view to close
-
isOpen
Returns whether the supplied view is currently open.- Parameters:
view- view to test- Returns:
truewhen the active screen wraps the supplied view
-
showToast
Shows a managed toast notification on the supplied view.- Parameters:
view- view that should own the toasttoast- toast to display- Returns:
- handle used to dismiss or inspect the toast
-
isDevtoolsToggle
public static boolean isDevtoolsToggle(int keyCode)
-