Text Displays
Overview
A text displays has:
text
which isString
lineWidth
which isInt
backgroundColor
which isCustomColor
opacity
which isInt
hasShadow
which isBoolean
isSeeThrough
which isBoolean
useDefaultBackgroundColor
which isBoolean
alignment
which isTextDisplayAlignment
Usage
You can spawn a text display using the normal entity spawning pattern:
kotlin
val entity = world.spawnEntity(TextDisplay(location, world)) as TextDisplay
entity.text.value = "<rainbow><underline>Yippeeeeeee\n<white>Woah second line!"