Package net.ME1312.Galaxi.Log
Class TextElement
java.lang.Object
net.ME1312.Galaxi.Log.TextElement
- Direct Known Subclasses:
ConsoleText
Text Element Builder Class
-
Constructor Summary
ConstructorDescriptionCreate a new Text ElementTextElement
(String text) Create a new Text ElementTextElement
(ObjectMap<String> element) Load a Text Element -
Method Summary
Modifier and TypeMethodDescriptionafter
(TextElement... elements) Place elements after this elementAdd additional text behind the existing textappend
(TextElement... elements) Place elements inside this element, but behind the textbefore
(TextElement... elements) Place elements before this elementboolean
bold()
Whether the text will be boldbold
(boolean value) Set whether the text will be boldcolor()
Get the color of the textSet the color of the textboolean
italic()
Whether the text will be italicitalic
(boolean value) Set whether the text will be italicmessage()
Get the messageAdd additional text before the existing textprepend
(TextElement... elements) Place elements inside this element, but in front of the textboolean
Whether the text will be struck throughstrikethrough
(boolean value) Set whether the text will be struck throughtoRaw()
Get the Raw Elementboolean
Whether the text will be underlinedunderline
(boolean value) Set whether the text will be underlined
-
Constructor Details
-
TextElement
public TextElement()Create a new Text Element -
TextElement
Create a new Text Element- Parameters:
text
- Text
-
TextElement
Load a Text Element- Parameters:
element
- Raw Element
-
-
Method Details
-
message
Get the message- Returns:
- Message
-
bold
Set whether the text will be bold- Parameters:
value
- Bold Status- Returns:
- Text Element
-
bold
public boolean bold()Whether the text will be bold- Returns:
- Bold Status
-
italic
Set whether the text will be italic- Parameters:
value
- Italic Status- Returns:
- Text Element
-
italic
public boolean italic()Whether the text will be italic- Returns:
- Italic Status
-
underline
Set whether the text will be underlined- Parameters:
value
- Underline Status- Returns:
- Text Element
-
underline
public boolean underline()Whether the text will be underlined- Returns:
- Bold Status
-
strikethrough
Set whether the text will be struck through- Parameters:
value
- Strike through Status- Returns:
- Text Element
-
strikethrough
public boolean strikethrough()Whether the text will be struck through- Returns:
- Strike through Status
-
color
Set the color of the text- Parameters:
color
- Text Color (or null for default)- Returns:
- Text Element
-
color
Get the color of the text- Returns:
- Text Color (or null for default)
-
before
Place elements before this element- Parameters:
elements
- Elements to prepend- Returns:
- Text Element
-
prepend
Place elements inside this element, but in front of the text- Parameters:
elements
- Elements to insert- Returns:
- Text Element
-
prepend
Add additional text before the existing text- Parameters:
text
- Text to add- Returns:
- Text Element
-
append
Add additional text behind the existing text- Parameters:
text
- Text to add- Returns:
- Text Element
-
append
Place elements inside this element, but behind the text- Parameters:
elements
- Elements to insert- Returns:
- Text Element
-
after
Place elements after this element- Parameters:
elements
- Elements to append- Returns:
- Text Element
-
toRaw
Get the Raw Element- Returns:
- Raw Element
-