public interface IndividualHologram extends BaseHologram
EMPTY| Modifier and Type | Method and Description |
|---|---|
void |
addViewer(org.bukkit.entity.Player player)
Adds a viewer to the hologram.
|
static IndividualHologram |
create(Position position,
List<HologramLine> lines)
Creates and returns a new individual hologram
|
Set<org.bukkit.entity.Player> |
getViewers()
Returns a copy of the available viewers of the hologram.
|
default boolean |
hasViewers()
Check if there are any viewers for the hologram.
|
void |
removeViewer(org.bukkit.entity.Player player)
Removes a viewer from the hologram.
|
void |
updateLines(List<HologramLine> lines)
Updates the lines displayed by this hologram
|
despawn, getArmorStand, getArmorStands, isSpawned, setClickCallback, spawn, updatePositionbindWith, close, closeAndReportException, closeSilently, isClosed@Nonnull static IndividualHologram create(@Nonnull Position position, @Nonnull List<HologramLine> lines)
Note: the hologram will not be spawned automatically.
position - the position of the hologramlines - the initial lines to displayvoid updateLines(@Nonnull List<HologramLine> lines)
This method does not refresh the actual hologram display. BaseHologram.spawn() must be called for these changes
to apply.
lines - the new lines@Nonnull Set<org.bukkit.entity.Player> getViewers()
Set of players.void addViewer(@Nonnull org.bukkit.entity.Player player)
player - the playervoid removeViewer(@Nonnull org.bukkit.entity.Player player)
player - the playerdefault boolean hasViewers()
Copyright © 2022. All rights reserved.