😍
HCore wiki
  • Starting
    • Initializing
  • Configs
    • Configs
  • Entities
    • NPC
    • Particles
    • Renderers
    • Holograms
  • Messaging
    • Command System
    • Scoreboards
    • Spam System
    • Messagings
    • Packets
  • Others
    • ItemBuilder
    • World Borders
    • Event Subscriber
    • Inventories
    • Database Management
Powered by GitBook
On this page
  • Starting
  • HHologram#addLine(String line)
  • HHologram#expire(long ticks)
  • HHologram#setLine(int line, String content)
  • HHologram#delete()
  • HHologram#clearLines()
  • HHologram#setLocation(Location loc)
  • HHologram#isExists()
  • HHologram#showEveryone(boolean)
  • HHologram#whenClicked(BiConsumer<Player, HHologramLine>)
  • HHologram#whenSpawned(Consumer<HHologram>)
  • HHologram#whenDeleted(Consumer<HHologram>)
  1. Entities

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.

PreviousRenderersNextCommand System

Last updated 2 years ago