Class DividerParagraph
java.lang.Object
io.github.somesourcecode.someguiapi.scene.lore.DividerParagraph
- All Implemented Interfaces:
Paragraph
A paragraph that acts as a divider.
- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new divider paragraph.DividerParagraph(int length) Constructs a new divider paragraph with the given length.DividerParagraph(int length, net.kyori.adventure.text.format.TextColor color) Constructs a new divider paragraph with the given length and color.DividerParagraph(int length, net.kyori.adventure.text.format.TextColor color, boolean bold) Constructs a new divider paragraph with the given length, color and boldness. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.format.TextColorgetColor()Returns the color of the divider.intReturns the length of the divider.List<net.kyori.adventure.text.Component>getLines()Returns a list representing the lines of the paragraph.booleanisBold()Returns whether the divider is bold.setBold(boolean bold) Sets whether the divider is bold.setColor(net.kyori.adventure.text.format.TextColor color) Sets the color of the divider.setLength(int length) Sets the length of the divider.
-
Constructor Details
-
DividerParagraph
public DividerParagraph()Constructs a new divider paragraph.- Since:
- 2.0.0
-
DividerParagraph
public DividerParagraph(int length) Constructs a new divider paragraph with the given length.- Parameters:
length- the length of the divider- Since:
- 2.0.0
-
DividerParagraph
public DividerParagraph(int length, net.kyori.adventure.text.format.TextColor color) Constructs a new divider paragraph with the given length and color.- Parameters:
length- the length of the dividercolor- the color of the divider- Since:
- 2.0.0
-
DividerParagraph
public DividerParagraph(int length, net.kyori.adventure.text.format.TextColor color, boolean bold) Constructs a new divider paragraph with the given length, color and boldness.- Parameters:
length- the length of the dividercolor- the color of the dividerbold- whether the divider is bold- Since:
- 2.0.0
-
-
Method Details
-
getLength
public int getLength()Returns the length of the divider.- Returns:
- the length of the divider
- Since:
- 2.0.0
-
setLength
Sets the length of the divider.- Parameters:
length- the length of the divider- Returns:
- the paragraph for method chaining
- Since:
- 2.0.0
-
getColor
public net.kyori.adventure.text.format.TextColor getColor()Returns the color of the divider.- Returns:
- the color of the divider
- Since:
- 2.0.0
-
setColor
Sets the color of the divider.- Parameters:
color- the color of the divider- Returns:
- the paragraph for method chaining
- Since:
- 2.0.0
-
isBold
public boolean isBold()Returns whether the divider is bold.- Returns:
- whether the divider is bold
- Since:
- 2.0.0
-
setBold
Sets whether the divider is bold.- Parameters:
bold- whether the divider is bold- Returns:
- the paragraph for method chaining
- Since:
- 2.0.0
-
getLines
Description copied from interface:ParagraphReturns a list representing the lines of the paragraph.
-