public class FancyMessage extends Object implements Cloneable, Iterable<club.skilldevs.utils.texts.MessagePart>, org.bukkit.configuration.serialization.ConfigurationSerializable
| Constructor and Description |
|---|
FancyMessage() |
FancyMessage(String firstPartText) |
FancyMessage(TextualComponent firstPartText) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FancyMessage(String firstPartText)
public FancyMessage(TextualComponent firstPartText)
public FancyMessage()
public static FancyMessage deserialize(Map<String,Object> serialized)
public static FancyMessage deserialize(String json)
public FancyMessage clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic FancyMessage text(String text)
public FancyMessage text(TextualComponent text)
public FancyMessage color(org.bukkit.ChatColor color)
public FancyMessage style(org.bukkit.ChatColor... styles)
public FancyMessage file(String path)
public FancyMessage link(String url)
public FancyMessage suggest(String command)
public FancyMessage insert(String command)
public FancyMessage command(String command)
public FancyMessage achievementTooltip(String name)
public FancyMessage tooltip(String text)
public FancyMessage tooltip(Iterable<String> lines)
public FancyMessage tooltip(String... lines)
public FancyMessage formattedTooltip(FancyMessage text)
public FancyMessage formattedTooltip(FancyMessage... lines)
public FancyMessage formattedTooltip(Iterable<FancyMessage> lines)
public FancyMessage translationReplacements(String... replacements)
public FancyMessage translationReplacements(FancyMessage... replacements)
public FancyMessage translationReplacements(Iterable<FancyMessage> replacements)
public FancyMessage then(String text)
public FancyMessage then(TextualComponent text)
public FancyMessage then()
public void writeJson(com.google.gson.stream.JsonWriter writer)
throws IOException
IOExceptionpublic String toJSONString()
public String send(org.bukkit.entity.Player player)
public void send(org.bukkit.command.CommandSender sender)
public void send(Iterable<? extends org.bukkit.command.CommandSender> senders)
public String toOldMessageFormat()
public Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializableCopyright © 2021. All rights reserved.