Adds a game object to the overlay.
The game object to overlay.
The current builder instance for method chaining.
Adds an NPC to the overlay by its index.
The index of the NPC to overlay.
The current builder instance for method chaining.
Adds a player to the overlay.
The player object to overlay.
The current builder instance for method chaining.
Adds text to display with the overlay.
The text label to display.
The current builder instance for method chaining.
Adds a world point location for the overlay.
A WorldPoint representing the location in the game world.
The current builder instance for method chaining.
Builds and activates the 3D overlay with the configured properties. Generates a unique UUID for the overlay and registers it with the overlay system.
The current builder instance, allowing access to the remove method.
Highlights the hull (model outline) with the specified color.
The color to use for highlighting the hull (e.g., "#00FF00").
The current builder instance for method chaining.
Highlights the tile with the specified color.
The color to use for highlighting the tile (e.g., "#FF0000").
The current builder instance for method chaining.
Removes the 3D overlay from the game world. Call this method when the overlay is no longer needed.
Sets the lifetime of the overlay in game ticks. If not set, the overlay will persist indefinitely until removed.
The number of game ticks the overlay should remain active.
The current builder instance for method chaining.
Builder class for creating 3D overlay items with a fluent API. Allows configuring various properties such as NPCs, game objects, highlights, and text labels.
Example