Class MessageUtil
java.lang.Object
com.hypixel.hytale.server.core.util.MessageUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intfindMatchingBrace(String text, int start) static StringformatText(String text, Map<String, ParamValue> params, Map<String, FormattedMessage> messageParams) static org.jline.utils.AttributedStylehexToStyle(String str) static voidsendFailureReply(PlayerRef playerRef, int token, Message message) Deprecated.static voidsendSuccessReply(PlayerRef playerRef, int token) Deprecated.static voidsendSuccessReply(PlayerRef playerRef, int token, Message message) Deprecated.static org.jline.utils.AttributedStringtoAnsiString(Message message) private static intprivate static int
-
Constructor Details
-
MessageUtil
public MessageUtil()
-
-
Method Details
-
toAnsiString
-
hexToStyle
-
sendSuccessReply
Deprecated. -
sendSuccessReply
@Deprecated public static void sendSuccessReply(@Nonnull PlayerRef playerRef, int token, @Nullable Message message) Deprecated. -
sendFailureReply
@Deprecated public static void sendFailureReply(@Nonnull PlayerRef playerRef, int token, @Nonnull Message message) Deprecated. -
formatText
@Nonnull public static String formatText(String text, @Nullable Map<String, ParamValue> params, @Nullable Map<String, FormattedMessage> messageParams) -
findMatchingBrace
-
trimStart
-
trimEnd
-