Class LineParagraph
java.lang.Object
io.github.somesourcecode.someguiapi.scene.lore.LineParagraph
- All Implemented Interfaces:
Paragraph
A paragraph that contains a single line.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionLineParagraph(net.kyori.adventure.text.Component line) Constructs a new line paragraph with the given line. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentgetLine()Returns the line of the paragraph.List<net.kyori.adventure.text.Component>getLines()Returns a list representing the lines of the paragraph.setLine(net.kyori.adventure.text.Component line) Sets the line of the paragraph.
-
Constructor Details
-
LineParagraph
public LineParagraph(net.kyori.adventure.text.Component line) Constructs a new line paragraph with the given line.- Parameters:
line- the line of the paragraph- Since:
- 2.0.0
-
-
Method Details
-
getLine
public net.kyori.adventure.text.Component getLine()Returns the line of the paragraph.- Returns:
- the line of the paragraph
- Since:
- 2.0.0
-
setLine
Sets the line of the paragraph.- Parameters:
line- the line of the paragraph- Returns:
- the paragraph for method chaining
- Since:
- 2.0.0
-
getLines
Description copied from interface:ParagraphReturns a list representing the lines of the paragraph.
-