> For the complete documentation index, see [llms.txt](https://trhologram.trixey.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trhologram.trixey.cc/api/trhologramapi/examples.md).

# 示例

## Java

```java
Hologram hologram = TrHologramAPI
        .builder(player.getLocation())
        .append("Hello World")
        .append("Your name: " + player.getName(), 50, (TickEvent) component -> {
            TextHologram text = (TextHologram) component;
            text.setText("Health: " + player.getHealth());
        })
        .append(viewer -> viewer.getInventory().getItemInMainHand(), 50)
        .interspace(0.5)
        .append("Time: %server_time_ss%", 20)
        .build();
```
