Class TextHologramLine
java.lang.Object
io.github.projectunified.unihologram.spigot.line.TextHologramLine
- All Implemented Interfaces:
HologramLine
A hologram line with text
-
Constructor Summary
ConstructorDescriptionTextHologramLine
(String content) Create a new lineTextHologramLine
(String content, Map<String, Object> settings) Create a new line -
Method Summary
Modifier and TypeMethodDescriptionstatic TextHologramLine
fromColoredContent
(@NotNull String content) Create a new line from the colored contentGet the colored contentGet the content of the lineGet the extra settings of the lineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.unihologram.api.HologramLine
getRawContent
-
Constructor Details
-
TextHologramLine
Create a new line- Parameters:
content
- the contentsettings
- the settings
-
TextHologramLine
Create a new line- Parameters:
content
- the content
-
-
Method Details
-
fromColoredContent
Create a new line from the colored content- Parameters:
content
- the colored content- Returns:
- the new line
-
getColoredContent
Get the colored content- Returns:
- the colored content
-
getContent
Description copied from interface:HologramLine
Get the content of the line- Specified by:
getContent
in interfaceHologramLine
- Returns:
- the content
-
getSettings
Description copied from interface:HologramLine
Get the extra settings of the line- Specified by:
getSettings
in interfaceHologramLine
- Returns:
- the extra settings
-