playerapi-2.0.0.jar
Curse Maven Snippet
What's new
[2.0.0] - 2026-08-23
The big one — PlayerAPI grows from "the toolkit our own mods needed" into a general-purpose, public client-interaction library, gains its own config-screen library, and moves to Minecraft 26.2. (The internal 1.19.x steps were never released separately; they ship together here.)
Added — new API surface
- Utilities (
com.playerapi.util):MathUtil(angles/distance/lerp/clamp, matchingLookActions),TextUtil(strip/colorize/prettify),ColorUtil(argb/rgb/hex/blend),TimeUtil("2m 36s" ⇄ ticks),DataStore(typed-JSON load/save under the config dir),Cooldown(ms/tick gate). - World queries & collision —
WorldInforaycast (raycastBlock),isPassable/isSolid/isSafeToStand/getTopY, water/lava/hazard checks,getBlockProperties, and sign-text reading (getSignText). - Entities —
EntityTracker(nearest / hostiles / ofType / byId / byName / crosshair-cone) and a much richerEntitySnapshot(velocity, facing, distance, category, hostile/baby/glowing/… flags). - Player state —
PlayerInforeach/canReachBlock, pose, vehicle, fall distance, and attribute reads (getAttribute, movement speed / attack damage). - Chat / commands / input —
ChatBuilder(fluent click/hover components),Commands.register(client commands),Keybinds.register. - GUI automation —
ScreenInfo(read an open container) +ContainerActions(click / shift-click / by item name) for menu automation. - Look / net —
LookActions.smoothLookAt(eased rotation) and asyncHttp(get / postJson, callbacks on the main thread). - World rendering —
LabelActions(floating world text) andWaypointActions(beam + name + live distance); an immediate-modeHudDrawsurface +HUD_RENDERevent for quick overlays. - Navigation —
Navigator+PathFinder: A* pathing with natural turn-rate movement, jumps/gap-jumps, swim, periodic re-path, and sneak/sprint/no-jump options. - Events — a large expansion (held-item / damage / food / xp / effects / dimension / entity spawn+despawn
/ container open+close), plus the mixin event pass:
PARTICLE_SPAWNED,SOUND_PLAYED,KEY_INPUT,MOUSE_BUTTON,PACKET_RECEIVED, and cancelableCHAT_FILTER/KEY_FILTER/MOUSE_FILTER. - UI helpers —
Notify(toast pop-ups) andDialogs(confirm / text-prompt modals). - Scripting —
Sequence, a fluent tick-driven action script (look → wait → use → walkTo → …).
Added — config library
com.playerapi.config— an annotation-driven config-screen library (PlayerConfig.createScreen): a mod annotates its existing config class (@ConfigCategory/@ConfigOption+ editors like@Toggle,@Slider,@ColorPicker,@Dropdown,@ConfigAccordion,@ConfigList, …) and PlayerAPI builds the screen. Includes a theming system. Used by PlayerAPI itself and all four dependent mods.
Changed
- Minecraft 26.2. Ported off the removed
Minecraft.screen/setScreen(→mc.gui.screen()/mc.gui.setScreen), the relocated title/overlay/toast/chat (→mc.gui.hud/mc.gui.toastManager), and other 26.2 API changes. - Dropped the YACL dependency — PlayerAPI's config screens now use the built-in config library above.
Fixed
SoundEngine.playsound-event mixin no longer NPEs on 26.2 when a sound instance isn't resolved yet (fires on a started sound and reads volume/pitch defensively).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

