Package com.plotsquared.core.util
Class ComponentHelper
java.lang.Object
com.plotsquared.core.util.ComponentHelper
A utility class for modifying components.
- Since:
- 7.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.ComponentLikejoin(Collection<? extends net.kyori.adventure.text.ComponentLike> components, net.kyori.adventure.text.Component delimiter) Joins multipleComponents into one finalComponentLikestatic net.kyori.adventure.text.Componentjoin(net.kyori.adventure.text.ComponentLike[] components, net.kyori.adventure.text.Component delimiter) Joins multipleComponentLikes into one finalComponentLike
-
Constructor Details
-
ComponentHelper
public ComponentHelper()
-
-
Method Details
-
join
public static net.kyori.adventure.text.ComponentLike join(Collection<? extends net.kyori.adventure.text.ComponentLike> components, net.kyori.adventure.text.Component delimiter) Joins multipleComponents into one finalComponentLike- Parameters:
components- The components to joindelimiter- The delimiter to use between the components- Returns:
- The joined components
- Since:
- 7.0.0
-
join
public static net.kyori.adventure.text.Component join(net.kyori.adventure.text.ComponentLike[] components, net.kyori.adventure.text.Component delimiter) Joins multipleComponentLikes into one finalComponentLike- Parameters:
components- The components to joindelimiter- The delimiter to use between the components- Returns:
- The joined components
- Since:
- 7.0.0
-