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.StringgetFancyText()Gets theString-representation of thisFancyText.voidsetAltColor(boolean altColor)Specifies whether thisFancyMessageshould use the alt-color.voidsetColorAlt()Makes thisFancyMessageuse the alt-color.voidsetColorMain()Makes thisFancyMessageuse the main-color.voidsetMainColor(boolean mainColor)Specifies whether thisFancyMessageshould 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 thisFancyMessageuse the main-color.
-
setColorAlt
public void setColorAlt()
Makes thisFancyMessageuse the alt-color.
-
getFancyText
public java.lang.String getFancyText()
Description copied from interface:FancyTextGets theString-representation of thisFancyText.- Specified by:
getFancyTextin interfaceFancyText- Returns:
- The
String-representation of thisFancyText.
-
setAltColor
public void setAltColor(boolean altColor)
Specifies whether thisFancyMessageshould use the alt-color.- Parameters:
altColor- Whether thisFancyMessageshould use the alt-color.
-
setMainColor
public void setMainColor(boolean mainColor)
Specifies whether thisFancyMessageshould use the main-color.- Parameters:
mainColor- Whether thisFancyMessageshould use the main-color.
-
-