Holograms
hCore allows you to easily create holograms in the worlds.
Starting
Firstly, you need to create HHologram using HCore#createHologram(id, location)
Then, you will be able to work with it.
HHologram#addLine(String line)
Adds line for hologram.
HHologram#expire(long ticks)
Hologram will hide after provided time in ticks.
HHologram#setLine(int line, String content)
Changes provided line on provided line to provided content.
HHologram#delete()
Deletes the hologram.
HHologram#clearLines()
Removes all lines in hologram.
HHologram#setLocation(Location loc)
Changes hologram's location to provided.
HHologram#isExists()
Returns if hologram is not deleted.
HHologram#showEveryone(boolean)
Allows to show hologram to everyone, or for specified players.
HHologram#whenClicked(BiConsumer<Player, HHologramLine>)
Calls when player clicked on hologram and you can get on what line he clicked.
HHologram#whenSpawned(Consumer<HHologram>)
Calls when hologram spawns.
HHologram#whenDeleted(Consumer<HHologram>)
Calls when hologram deletes.
Last updated