Class FancyMessage
- java.lang.Object
-
- com.onarandombox.MultiverseCore.utils.FancyMessage
-
-
Constructor Summary
Constructors Constructor Description FancyMessage(java.lang.String title, java.lang.String message, FancyColorScheme scheme)
Allows easy creation of an alternating colored list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFancyText()
Gets theString
-representation of thisFancyText
.void
setAltColor(boolean altColor)
Specifies whether thisFancyMessage
should use the alt-color.void
setColorAlt()
Makes thisFancyMessage
use the alt-color.void
setColorMain()
Makes thisFancyMessage
use the main-color.void
setMainColor(boolean mainColor)
Specifies whether thisFancyMessage
should use the main-color.
-
-
-
Constructor Detail
-
FancyMessage
public FancyMessage(java.lang.String title, java.lang.String message, FancyColorScheme scheme)
Allows easy creation of an alternating colored list. TODO: Documentation! Why does CheckStyle just ignore this?- Parameters:
title
- The title.message
- The body of the message.scheme
- The color scheme to use for easy styling.
-
-
Method Detail
-
setColorMain
public void setColorMain()
Makes thisFancyMessage
use the main-color.
-
setColorAlt
public void setColorAlt()
Makes thisFancyMessage
use the alt-color.
-
getFancyText
public java.lang.String getFancyText()
Description copied from interface:FancyText
Gets theString
-representation of thisFancyText
.- Specified by:
getFancyText
in interfaceFancyText
- Returns:
- The
String
-representation of thisFancyText
.
-
setAltColor
public void setAltColor(boolean altColor)
Specifies whether thisFancyMessage
should use the alt-color.- Parameters:
altColor
- Whether thisFancyMessage
should use the alt-color.
-
setMainColor
public void setMainColor(boolean mainColor)
Specifies whether thisFancyMessage
should use the main-color.- Parameters:
mainColor
- Whether thisFancyMessage
should use the main-color.
-
-