package me.deftware.client.framework.chat;

import me.deftware.client.framework.chat.style.ChatColors;

/**
 * @author Deftware
 */
public class LiteralChatMessage extends ChatMessage {

	public LiteralChatMessage(String text) {
		this(text, ChatColors.WHITE);
	}

	public LiteralChatMessage(String text, ChatColors color) {
		ChatSection section = new ChatSection(text);
		section.getStyle().setColor(color.getChatColor());
		sectionList.add(section);
	}

	public static LiteralChatMessage formatted(String text, Object... params) {
		return new LiteralChatMessage(String.format(text, params));
	}

}

@@ -97,16 +97,42 @@
 olors;%0A%0A
+import java.util.Arrays;%0A%0A
 /**%0A * @
@@ -206,16 +206,93 @@
 sage %7B%0A%0A
+%09public static final LiteralChatMessage EMPTY = new LiteralChatMessage(%22%22);%0A%0A
 %09public 
@@ -696,10 +696,217 @@
 ));%0A%09%7D%0A%0A
+%09public static LiteralChatMessage%5B%5D of(String... text) %7B%0A%09%09return Arrays.stream(text)%0A%09%09%09%09.map(s -%3E s == null %7C%7C s.isEmpty() ? EMPTY : new LiteralChatMessage(s))%0A%09%09%09%09.toArray(LiteralChatMessage%5B%5D::new);%0A%09%7D%0A%0A
 %7D%0A

Update LiteralChatMessage