Package net.ME1312.Galaxi.Log
Class ConsoleText
java.lang.Object
net.ME1312.Galaxi.Log.TextElement
net.ME1312.Galaxi.Log.ConsoleText
Console Text Element Builder Class
-
Constructor Summary
ConstructorDescriptionCreate a new Text ElementConsoleText
(String text) Create a new Text ElementConsoleText
(ObjectMap<String> element) Load a Text Element -
Method Summary
Modifier and TypeMethodDescriptionafter
(TextElement... elements) Place elements after this elementappend
(TextElement... elements) Place elements inside this element, but behind the textGet the background color of the textbackgroundColor
(int color) Set the background color of the textbackgroundColor
(Color color) Set the background color of the textbefore
(TextElement... elements) Place elements before this elementbold
(boolean value) Set whether the text will be boldcolor
(int color) Set the color of the textSet the color of the textitalic
(boolean value) Set whether the text will be italiconClick()
Get the link that will open on clickRun some code on clickOpen a link on clickprepend
(TextElement... elements) Place elements inside this element, but in front of the textstrikethrough
(boolean value) Set whether the text will be struck throughboolean
Whether the text will be in subscriptsubscript
(boolean value) Set whether the text will be in subscriptboolean
Whether the text will be in superscriptsuperscript
(boolean value) Set whether the text will be in superscriptunderline
(boolean value) Set whether the text will be underlinedMethods inherited from class net.ME1312.Galaxi.Log.TextElement
append, bold, color, italic, message, prepend, strikethrough, toRaw, underline
-
Constructor Details
-
ConsoleText
public ConsoleText()Create a new Text Element -
ConsoleText
Create a new Text Element- Parameters:
text
- Text
-
ConsoleText
Load a Text Element- Parameters:
element
- Raw Element
-
-
Method Details
-
bold
Description copied from class:TextElement
Set whether the text will be bold- Overrides:
bold
in classTextElement
- Parameters:
value
- Bold Status- Returns:
- Text Element
-
italic
Description copied from class:TextElement
Set whether the text will be italic- Overrides:
italic
in classTextElement
- Parameters:
value
- Italic Status- Returns:
- Text Element
-
underline
Description copied from class:TextElement
Set whether the text will be underlined- Overrides:
underline
in classTextElement
- Parameters:
value
- Underline Status- Returns:
- Text Element
-
strikethrough
Description copied from class:TextElement
Set whether the text will be struck through- Overrides:
strikethrough
in classTextElement
- Parameters:
value
- Strike through Status- Returns:
- Text Element
-
superscript
Set whether the text will be in superscript- Parameters:
value
- Superscript Status- Returns:
- Text Element
-
superscript
public boolean superscript()Whether the text will be in superscript- Returns:
- Superscript Status
-
subscript
Set whether the text will be in subscript- Parameters:
value
- Subscript Status- Returns:
- Text Element
-
subscript
public boolean subscript()Whether the text will be in subscript- Returns:
- Subscript Status
-
color
Set the color of the text- Parameters:
color
- 8-bit Text Color- Returns:
- Text Element
-
color
Description copied from class:TextElement
Set the color of the text- Overrides:
color
in classTextElement
- Parameters:
color
- Text Color (or null for default)- Returns:
- Text Element
-
backgroundColor
Set the background color of the text- Parameters:
color
- 8-bit Background Color- Returns:
- Text Element
-
backgroundColor
Set the background color of the text- Parameters:
color
- Text Background Color (or null for default)- Returns:
- Text Element
-
backgroundColor
Get the background color of the text- Returns:
- Text Background Color (or null for default)
-
onClick
Run some code on click- Parameters:
value
- Code to run- Returns:
- Text Element
-
onClick
Open a link on click- Parameters:
value
- Link to open- Returns:
- Text Element
-
onClick
Get the link that will open on click- Returns:
- Link to open
-
before
Description copied from class:TextElement
Place elements before this element- Overrides:
before
in classTextElement
- Parameters:
elements
- Elements to prepend- Returns:
- Text Element
-
prepend
Description copied from class:TextElement
Place elements inside this element, but in front of the text- Overrides:
prepend
in classTextElement
- Parameters:
elements
- Elements to insert- Returns:
- Text Element
-
append
Description copied from class:TextElement
Place elements inside this element, but behind the text- Overrides:
append
in classTextElement
- Parameters:
elements
- Elements to insert- Returns:
- Text Element
-
after
Description copied from class:TextElement
Place elements after this element- Overrides:
after
in classTextElement
- Parameters:
elements
- Elements to append- Returns:
- Text Element
-