the content of the line
the new ItemLine appended
Appends a text line to end of this hologram.
the content of the line, can be null for an empty line
the new TextLine appended
Removes all the lines from this hologram.
Deletes this hologram. Editing or teleporting the hologram when deleted will throw an exception. Lines will be automatically cleared. You should remove all the references of the hologram after deletion.
Returns when the hologram was created. Useful for removing old holograms.
the timestamp of when the hologram was created, in milliseconds
The physical height of the hologram, counting all the lines. Since: v2.1.4
the height of the hologram, counting all the lines and the gaps between them
Finds the element at a given index in the lines.
the index of the line to retrieve.
the hologram line at the given index, can be an {@link ItemLine} or a {@link TextLine}.
Returns the position of the hologram.
the Location of the hologram
Returns the VisibilityManager of this hologram.
Note: the usage of the VisibilityManager requires ProtocolLib.
Without the plugin, holograms will be always visible.
the VisibilityManager of this hologram
Returns the world.
the world of the hologram
Returns the X coordinate.
the X coordinate of the hologram
Returns the Y coordinate.
the Y coordinate of the hologram
Returns the Z coordinate.
the Z coordinate of the hologram
Inserts an item line in this hologram.
the line is inserted before this index. If 0, the new line will be inserted before the first line.
the content of the line
the new ItemLine inserted
Inserts a text line in this hologram.
the line is inserted before this index. If 0, the new line will be inserted before the first line.
the content of the line, can be null for an empty line
the new TextLine inserted
Checks if the hologram will track and replace placeholders. This is false by default.
if the hologram allows placeholders
Checks if a hologram was deleted.
true if this hologram was deleted
Removes a line at a given index. Since: v2.0.1
the index of the line, that should be between 0 and size() - 1.
Sets if the hologram should track and replace placeholders. By default if will not track them.
if the hologram should track placeholders
Checks the amount of lines of the hologram.
the amount of lines
Teleports a hologram to the given location.
the new location
Teleports a hologram to the given location.
the world where the hologram should be teleported, use {@link #getWorld()} to teleport it in the same world.
the X coordinate
the Y coordinate
the Z coordinate
Generated using TypeDoc
Appends an item line to end of this hologram.