Class ComponentUtil
java.lang.Object
io.github.somesourcecode.someguiapi.util.ComponentUtil
Utility class for components.
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.ComponentcopyComponent(net.kyori.adventure.text.Component component, boolean copyChildren) Copies a component.
-
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 copycopyChildren- whether to copy the children of the component- Returns:
- the copied component
- Since:
- 2.0.0
-