| Name | <ElementTag.split_lines_by_width[<#>]> |
| Returns | ElementTag |
| Description | Returns the element split into separate lines based on a maximum width in pixels per line.
This uses character width, so for example 20 "W"s and 20 "i"s will be treated differently. The width used is based on the vanilla minecraft font. This will not be accurate for other fonts. This only currently supports ASCII symbols properly. Unicode symbols will be estimated as 6 pixels. Spaces will be preferred to become newlines, unless a line does not contain any spaces. |
| Generated Example | |
| Group | element manipulation |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/bukkit/BukkitElementExtensions.java#L271 |