Package net.mathias2246.buildmc.util
Class ComponentUtil
java.lang.Object
net.mathias2246.buildmc.util.ComponentUtil
A utility class for Adventure-API
Components-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<net.kyori.adventure.text.Component> splitComponentByNewline(@NotNull net.kyori.adventure.text.Component component) Tries to splitTextComponents on new-line characters.
-
Constructor Details
-
ComponentUtil
public ComponentUtil()
-
-
Method Details
-
splitComponentByNewline
@NotNull public static @NotNull List<net.kyori.adventure.text.Component> splitComponentByNewline(@NotNull @NotNull net.kyori.adventure.text.Component component) Tries to splitTextComponents on new-line characters.- Parameters:
component- TheComponentto split- Returns:
- A
Listof lines
-