- public void display(Player viewer) {
- Hologram hologram = TrHologramAPI
- .builder(viewer.getLocation())
- .append("Hello World")
- .append(player -> player.getInventory().getItemInMainHand(), 40)
- .interspace(0.5)
- .append("Time: %server_time_ss%", 20)
- .build();
- hologram.refreshVisibility(viewer);
- TextHologram line = hologram.getTextLine(0);
- line.setText("Hello TrHologram");
- }