Interface Inserting
-
- All Superinterfaces:
Tag
- All Known Implementing Classes:
TransitionTag
public interface Inserting extends Tag
A tag that inserts aComponent
into the output.- Since:
- 4.10.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.kyori.adventure.text.minimessage.tag.Tag
Tag.Argument
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
allowsChildren()
Get whether this tag allows children.@NotNull Component
value()
Returns the component this tag produces.
-
-
-
Method Detail
-
value
@NotNull @NotNull Component value()
Returns the component this tag produces.- Returns:
- the component this tag produces
- Since:
- 4.10.0
-
allowsChildren
default boolean allowsChildren()
Get whether this tag allows children.If children are not allowed, this tag will be auto-closing, and should not be closed explicitly. In strict mode, a closing tag will be an error. In lenient mode, the closing tag will be interpreted as literal text.
- Returns:
- whether this tag will allow following to become children
- Since:
- 4.10.0
-
-