promotional bannermobile promotional banner

NameplateBuilder - API

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

NameplateBuilder API

A lightweight compile-time API for mod developers who want to add their own nameplate segments to NameplateBuilder.

Docs GitHub Discord


Who Needs This?

Mod developers only. This jar is a compile-time dependency for building mods that integrate with NameplateBuilder. It does not go in the /mods folder and should not be listed as a required CurseForge dependency for your mod.

  • Server owners: You only need the NameplateBuilder server plugin. Do not download this API jar.
  • Mod developers: Download this jar, place it in your libs/ folder, and add it as a compileOnly dependency in your build.gradle.

If your mod fully integrates with NameplateBuilder (meaning you use it for nameplates instead of managing them yourself), mark the server plugin (not this API) as a required dependency in your CurseForge Project Settings.


Setup

build.gradle:

dependencies {
    compileOnly files('libs/NameplateBuilder-API-2.2.0.jar')
}

manifest.json:

{
  "Dependencies": {
    "Frotty27:NameplateBuilder": ">=4.260326.7"
  }
}

What's In the API?

Class Purpose
NameplateAPI Main entry point - define segments, set text, clear text
SegmentBuilder Fluent builder for resolvers, caching, defaults, and replacements
SegmentResolver Functional interface for computing segment text per entity
NameplateData ECS component that holds segment text on entities
SegmentTarget Enum: ALL, PLAYERS, or NPCS

Quick Example

@Override
protected void setup() {
    NameplateAPI.define(this, "bounty", "Bounty",
            SegmentTarget.NPCS, "$500")
        .enabledByDefault(SegmentTarget.NPCS)
        .resolver((store, entityRef, variantIndex) -> {
            BountyComponent bounty = store.getComponent(entityRef, bountyType);
            if (bounty == null) return null;
            return "$" + bounty.getAmount();
        });
}

That's it. No tick systems needed. NameplateBuilder calls your resolver automatically for every visible entity. Players can add "Bounty" to their chain, reorder it, and pick display formats via /npb.

See the Quick Start guide for a full walkthrough.


Additional Files

The download includes the -javadoc.jar and -sources.jar alongside the main API jar. Place all three in your libs/ folder for full IDE support (autocomplete, inline docs, click-to-source).

The NameplateBuilder - API Team

profile avatar
  • 6
    Followers
  • 5
    Projects
  • 28.7K
    Downloads

IT guy who's found a hobby in making mods. Open for anything, feel free to leave message on Discord (through my Discord server) or on CurseForge.

More from Frotty277View all

  • NameplateBuilder project image

    NameplateBuilder

    • 10.2K
    • Mods

    Pick segments from any mod, order them how you want, and build your own nameplate.

    • 10.2K
    • April 10, 2026
    • Mods
    • +2
  • RPGMobs project image

    RPGMobs

    • 11.8K
    • Mods

    Adds tiered enemies with randomized armor, weapons, abilities, effects, and better loot to your world (fully configurable)! Uses NameplateBuilder as a dependency.

    • 11.8K
    • April 3, 2026
    • Mods
    • +1
  • RPGMobs - API project image

    RPGMobs - API

    • 427
    • Mods

    A lightweight event-driven API for mod developers to hook into RPGMobs — listen to events, query mob state, and customize behaviour at runtime.

    • 427
    • March 30, 2026
    • Mods
    • +1
  • AutoBench project image

    AutoBench

    • 3.6K
    • Mods

    This project discontinued as I'm sure there are better options available. I'm mainly focusing now on RPGMobs & NameplateBuilder.

    • 3.6K
    • January 30, 2026
    • Mods
    • +3
  • NameplateBuilder project image

    NameplateBuilder

    • 10.2K
    • Mods

    Pick segments from any mod, order them how you want, and build your own nameplate.

    • 10.2K
    • April 10, 2026
    • Mods
    • +2
  • RPGMobs project image

    RPGMobs

    • 11.8K
    • Mods

    Adds tiered enemies with randomized armor, weapons, abilities, effects, and better loot to your world (fully configurable)! Uses NameplateBuilder as a dependency.

    • 11.8K
    • April 3, 2026
    • Mods
    • +1
  • RPGMobs - API project image

    RPGMobs - API

    • 427
    • Mods

    A lightweight event-driven API for mod developers to hook into RPGMobs — listen to events, query mob state, and customize behaviour at runtime.

    • 427
    • March 30, 2026
    • Mods
    • +1
  • AutoBench project image

    AutoBench

    • 3.6K
    • Mods

    This project discontinued as I'm sure there are better options available. I'm mainly focusing now on RPGMobs & NameplateBuilder.

    • 3.6K
    • January 30, 2026
    • Mods
    • +3