public interface Hologram extends BaseHologram, GsonSerializable
EMPTY| Modifier and Type | Method and Description |
|---|---|
static Hologram |
create(Position position,
List<String> lines)
Creates and returns a new hologram
|
static Hologram |
deserialize(com.google.gson.JsonElement element) |
void |
updateLines(List<String> lines)
Updates the lines displayed by this hologram
|
despawn, getArmorStand, getArmorStands, isSpawned, setClickCallback, spawn, updatePositionbindWith, close, closeAndReportException, closeSilently, isCloseddeserialize, deserializeRaw, getDeserializeMethod, serialize@Nonnull static Hologram create(@Nonnull Position position, @Nonnull List<String> lines)
Note: the hologram will not be spawned automatically.
position - the position of the hologramlines - the initial lines to displaystatic Hologram deserialize(com.google.gson.JsonElement element)
void updateLines(@Nonnull List<String> lines)
This method does not refresh the actual hologram display. BaseHologram.spawn() must be called for these changes
to apply.
lines - the new linesCopyright © 2022. All rights reserved.