Class ComponentHelper

java.lang.Object
com.plotsquared.core.util.ComponentHelper

public class ComponentHelper extends Object
A utility class for modifying components.
Since:
7.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.kyori.adventure.text.ComponentLike
    join(Collection<? extends net.kyori.adventure.text.ComponentLike> components, net.kyori.adventure.text.Component delimiter)
    Joins multiple Components into one final ComponentLike
    static net.kyori.adventure.text.Component
    join(net.kyori.adventure.text.ComponentLike[] components, net.kyori.adventure.text.Component delimiter)
    Joins multiple ComponentLikes into one final ComponentLike

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 multiple Components into one final ComponentLike
      Parameters:
      components - The components to join
      delimiter - 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 multiple ComponentLikes into one final ComponentLike
      Parameters:
      components - The components to join
      delimiter - The delimiter to use between the components
      Returns:
      The joined components
      Since:
      7.0.0