VitalHologramService
Global service to create and delete holograms. Every created hologram will be stored globally in VitalHologramRepository.
Functions
Creates a hologram at the given location which displays all given lines that is visible to all players on the server. The created hologram is stored in VitalHologramRepository.
Creates a hologram at the given location which displays the given lines that is visible to only the passed player. The created hologram is stored in VitalHologramRepository.
Deletes the given hologram. The hologram will also be deleted from VitalHologramRepository.
Deletes a hologram by the given armorStandUniqueId and lineArmorStandUniqueIds. The hologram will also be deleted from VitalHologramRepository.
Hides a hologram by the given armorStandUniqueId and lineArmorStandUniqueIds for the given player.
Hides all other known holograms that are registered in VitalHologramRepository and are not owned by the given player. Note that this function will only work correctly, if all holograms are loaded into VitalHologramRepository. If not, this function will fail to hide other holograms since Vital is not aware of their existence.
Shows the given hologram for the given player. If given hologram has been hidden using hideHologram before, this function will make it visible again.
Shows a hologram by the given armorStandUniqueId and lineArmorStandUniqueIds for the given player. If the hologram with the given armorStandUniqueId and lineArmorStandUniqueIds has been hidden using hideHologram before, this function will make it visible again.
Updates all lines of the given hologram. If the hologram doesn't exist, this function will throw IllegalStateException.