Class FancyMessage
- java.lang.Object
- 
- me.bimmr.bimmcore.messages.fancymessage.FancyMessage
 
- 
 public class FancyMessage extends java.lang.ObjectA Utilities/Builder class for the BaseComponents API
- 
- 
Constructor SummaryConstructors Constructor Description FancyMessage()Default ConstructorFancyMessage(java.lang.String string)Constructor with first textFancyMessage(FancyMessage fancyMessage)
 - 
Method SummaryModifier and Type Method Description FancyMessagechangePage(java.lang.String page)Change the page in a bookFancyMessagecommand(java.lang.String string)The command the player will use/say when they message the messagesnet.md_5.bungee.api.chat.BaseComponent[]getBaseComponents()FancyMessagelink(java.lang.String string)Opens the link for the player when they message the messagesFancyMessageonClick(FancyClick fce)CAN NOT BE USED WITH COMMAND Add a callback for an onClick CallBack self deletes after 5 minutes from first message, unless told otherwiseFancyMessageonClick(FancyClickEvent fce)FancyMessagesay(java.lang.String string)The message the player will use/say when they message the messagesvoidsend(org.bukkit.entity.Player player)Sends the messages to a playervoidsend(org.bukkit.entity.Player[] players)Sends the messages to an array of playersvoidsendToConsole(org.bukkit.command.CommandSender sender)Sends the fancy messages in the form of plain text to the consoleFancyMessageshowItem(org.bukkit.inventory.ItemStack item)FancyMessagesuggest(java.lang.String string)Autotypes a messages into their chatbar when they message the messagesFancyMessagethen(java.lang.String string)Adds a new string section to the messages, this allows new tooltips, and events.FancyMessagethen(FancyMessage fancyMessage)java.lang.StringtoJSON()FancyMessagetooltip(java.lang.String... strings)Tooltips are what appear when you hover over the messagesjava.lang.StringtoPlainText()
 
- 
- 
- 
Constructor Detail- 
FancyMessagepublic FancyMessage() Default Constructor
 - 
FancyMessagepublic FancyMessage(java.lang.String string) Constructor with first text- Parameters:
- string- the String to start with
 
 - 
FancyMessagepublic FancyMessage(FancyMessage fancyMessage) 
 
- 
 - 
Method Detail- 
thenpublic FancyMessage then(java.lang.String string) Adds a new string section to the messages, this allows new tooltips, and events.- Parameters:
- string- The String to add
- Returns:
- The FancyMessage
 
 - 
thenpublic FancyMessage then(FancyMessage fancyMessage) 
 - 
tooltippublic FancyMessage tooltip(java.lang.String... strings) Tooltips are what appear when you hover over the messages- Parameters:
- strings- The tooltips to add
- Returns:
- The FancyMessage
 
 - 
showItempublic FancyMessage showItem(org.bukkit.inventory.ItemStack item) 
 - 
commandpublic FancyMessage command(java.lang.String string) The command the player will use/say when they message the messages- Parameters:
- string- The command to run
- Returns:
- The FancyMessage
 
 - 
saypublic FancyMessage say(java.lang.String string) The message the player will use/say when they message the messages- Parameters:
- string- The command to run
- Returns:
- The FancyMessage
 
 - 
changePagepublic FancyMessage changePage(java.lang.String page) Change the page in a book- Parameters:
- page- The page to change to
- Returns:
- The FancyMessage
 
 - 
onClickpublic FancyMessage onClick(FancyClick fce) CAN NOT BE USED WITH COMMAND Add a callback for an onClick CallBack self deletes after 5 minutes from first message, unless told otherwise- Parameters:
- fce- The FancyClickEvent
- Returns:
- The FancyMessage
 
 - 
onClickpublic FancyMessage onClick(FancyClickEvent fce) 
 - 
suggestpublic FancyMessage suggest(java.lang.String string) Autotypes a messages into their chatbar when they message the messages- Parameters:
- string- The String to type
- Returns:
- The FancyMessage
 
 - 
linkpublic FancyMessage link(java.lang.String string) Opens the link for the player when they message the messages- Parameters:
- string- The link
- Returns:
- The FancyMessage
 
 - 
sendpublic void send(org.bukkit.entity.Player player) Sends the messages to a player- Parameters:
- player- The player
 
 - 
sendpublic void send(org.bukkit.entity.Player[] players) Sends the messages to an array of players- Parameters:
- players- The players
 
 - 
getBaseComponentspublic net.md_5.bungee.api.chat.BaseComponent[] getBaseComponents() - Returns:
- Get all the BaseComponents
 
 - 
toJSONpublic java.lang.String toJSON() - Returns:
- Get the FancyMessage as JSON
 
 - 
sendToConsolepublic void sendToConsole(org.bukkit.command.CommandSender sender) Sends the fancy messages in the form of plain text to the console- Parameters:
- sender- The console sender
 
 - 
toPlainTextpublic java.lang.String toPlainText() - Returns:
- Get the Fancy Message as just plain text
 
 
- 
 
-