promotional bannermobile promotional banner

NameplateBuilder - API

The lightweight API for mod developers who want to add their own nameplate segments to NameplateBuilder.

File Details

NameplateBuilder-API-2.0.0.zip

  • R
  • Apr 1, 2026
  • 4.00 MB
  • 1.1K
  • Early Access

File Name

NameplateBuilder-API-2.0.0.zip

Supported Versions

  • Early Access

[2.0.0] - 2026-04-01

Breaking Changes

  • describe() renamed to define() and now returns SegmentBuilder
  • describeVariants() renamed to defineVariants()
  • undescribe() renamed to undefine()
  • register() renamed to setText()
  • remove() renamed to clearText()

Added

  • Resolver pattern - Mods can register a SegmentResolver function that computes segment text per entity, replacing the need for manual tick systems
  • SegmentResolver functional interface with resolve(Store, Ref, int variantIndex) signature
  • SegmentBuilder interface with resolver(), requires(), and cacheTicks() methods
  • define() returns SegmentBuilder for fluent configuration of resolvers and optimization hints