# Holograms

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hcore.gitbook.io/wiki/entities/holograms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
