# Libraries

Libraries are the globals a script starts with. Most scripts call a library first, then follow the returned object into a class. Nested entries are supporting types, not additional globals.

- [Chat](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FChat.md) — Provides client chat, server messaging, overlay display, and text-formatting functions to scripts as the Chat variable.
- [Client](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FClient.md) — Miscellaneous functions for interacting with Minecraft, exposed to scripts as Client.
- [Color](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FColor.md) — Creates and inspects the packed ARGB colors used by the render APIs.
- [FS](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FFS.md) — File operations resolved against the running script's folder; the FS library is available to scripts as a global variable.
- [GlobalVars](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FGlobalVars.md) — Stores named Java values shared by scripts in this JsMacros runtime.
- [Hud](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FHud.md) — Screen, overlay, texture, and window-state APIs exposed to scripts as Hud.
- [JavaUtils](./libraries/com/jsmacrosce/jsmacros/api/library/FJavaUtils.md) — Creates Java collections and provides array-string and raw-object helper conversions.
- [JavaWrapper](./libraries/com/jsmacrosce/jsmacros/graal/library/impl/FWrapper.md) — Wraps script callbacks for use as Java MethodWrappers through the JavaWrapper library.
- [JsMacros](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FJsMacros.md) — Script library for event listeners, script execution, and profile services.
  - [EventAndContext](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FJsMacros.EventAndContext.md) — Pairs an event received by waitForEvent with its event container.
  - [ScriptEventListener](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FJsMacros.ScriptEventListener.md) — Listener implementation used for script event subscriptions, rather than a global library.
- [KeyBind](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FKeyBind.md) — Gets and changes key and keybind states through the script global KeyBind.
  - [KeyTracker](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FKeyBind.KeyTracker.md) — Tracks key names marked pressed by JsMacros key and keybind state calls; it does not query physical keyboard state.
- [Player](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FPlayer.md) — Functions for getting and modifying the player's state.
- [PositionCommon](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FPositionCommon.md) — Creates 2D and 3D positions and segments, plus block positions and look-direction vectors.
- [Reflection](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FReflection.md) — Loads classes and uses Java reflection through the script global Reflection.
  - [CombinedVariableClassLoader](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FReflection.CombinedVariableClassLoader.md) — Class loader that searches registered sibling class loaders for classes and resources.
- [Request](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FRequest.md) — Sends HTTP requests and creates WebSocket handlers through the Request script library.
- [Time](./libraries/com/jsmacrosce/jsmacros/core/library/impl/FTime.md) — Provides wall-clock time utilities to scripts as Time.
- [Utils](./libraries/com/jsmacrosce/jsmacros/api/library/FUtils.md) — Standalone utilities for hashing and Base64 conversion, guessing chat sender names, and rejecting null values.
- [World](./libraries/com/jsmacrosce/jsmacros/client/api/library/impl/FWorld.md) — Functions for getting and using world data.
