HologramPage

data class HologramPage

Functions

addLines
Link copied to clipboard
fun addLines(vararg contents: String, type: LineType = LineType.DEFAULT)
Add a varable amount of lines to the end of this hologram.
clearLines
Link copied to clipboard
fun clearLines()
Clear all the lines of a hologram page.
component1
Link copied to clipboard
operator fun component1(): Hologram
copy
Link copied to clipboard
fun copy(parent: Hologram, linesData: MutableList<HologramLine>, viewersData: MutableSet<UUID> = mutableSetOf()): HologramPage
despawn
Link copied to clipboard
fun despawn()
Completely despawn a hologram page.
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
insertLine
Link copied to clipboard
fun insertLine(index: Int, content: String, type: LineType = LineType.DEFAULT)
Insert a new line
removeLine
Link copied to clipboard
fun removeLine(index: Int): HologramLine?
Remove a line at a given index.
setLine
Link copied to clipboard
fun setLine(index: Int, content: String): Boolean
Set an existing line to a new value.
toString
Link copied to clipboard
open override fun toString(): String
update
Link copied to clipboard
fun update()
Update this page.

Properties

hasArrows
Link copied to clipboard
@Expose()
var hasArrows: Boolean = false
True if the hologram has an arrow line.
lines
Link copied to clipboard
val lines: List<HologramLine>
The HologramLines of this page.
parent
Link copied to clipboard
var parent: Hologram
viewers
Link copied to clipboard
val viewers: Set<UUID>
The viewers of this page.
viewingPlayers
Link copied to clipboard
val viewingPlayers: Set<Player>
Similar to viewers but its all the online Players