Class ComponentUtil

java.lang.Object
io.github.somesourcecode.someguiapi.util.ComponentUtil

public class ComponentUtil extends Object
Utility class for components.
Since:
2.0.0
  • Constructor Details

    • ComponentUtil

      public ComponentUtil()
  • Method Details

    • copyComponent

      public static net.kyori.adventure.text.Component copyComponent(net.kyori.adventure.text.Component component, boolean copyChildren)
      Copies a component.
      Parameters:
      component - the component to copy
      copyChildren - whether to copy the children of the component
      Returns:
      the copied component
      Since:
      2.0.0