Skip to content

Hologram

Hakan Kargın edited this page Aug 14, 2023 · 4 revisions

How To Use

Hologram System

With this system you can create and manage client-side holograms easily.

Let's create an hologram with hCore

Hologram myHologram = HCore.hologramBuilder("MyHologram").location(player.getLocation()).build();

and then let's add some lines to it

myHologram.addLine("Hi ! That's the first line").addLine("And that's the second line");

our hologram is ready but there's a problem... Nobody can see it. Let's make the player able to see it.

myHologram.addPlayer(player);

Example

Hologram myHologram = HCore.hologramBuilder("MyHologram").location(player.getLocation()).build(); // creates a HHologram object with text "MyHologram" at player's location
myHologram.addLine("Hi ! That's the first line").addLine("And that's the second line"); // adds two lines to hologram
myHologram.addPlayer(player); // allows player to see the hologram
Clone this wiki locally