Package org.kingdoms.locale.compiler
Class MessageCompiler
java.lang.Object
org.kingdoms.locale.compiler.MessageCompiler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMessageCompiler(char[] str, MessageCompilerSettings settings) MessageCompiler(String str) MessageCompiler(String str, MessageCompilerSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile()static MessageObjectstatic MessageObjectstatic MessageObjectcompile(String str, boolean validate, boolean plainOnly, MessageTokenHandler tokenHandler) static MessageObjectcompile(String str, MessageCompilerSettings compilerSettings) static net.md_5.bungee.api.chat.HoverEventconstructHoverEvent(net.md_5.bungee.api.chat.BaseComponent[] baseComponents) static MessageCompilerSettingsdefaultSettingsWithErroHandler(Consumer<MessageCompiler> errorHandler) chargetChar()char[]getChars()intgetIndex()booleanlink(Collection<String> lines, MessageBuilder settings) toString()
-
Field Details
-
DEFAULT_COMPILER_SETTINGS
-
-
Constructor Details
-
MessageCompiler
-
MessageCompiler
-
MessageCompiler
-
-
Method Details
-
getChars
public char[] getChars() -
defaultSettingsWithErroHandler
public static MessageCompilerSettings defaultSettingsWithErroHandler(Consumer<MessageCompiler> errorHandler) -
getExceptions
-
hasErrors
public boolean hasErrors() -
joinExceptions
-
getIndex
public int getIndex() -
getChar
public char getChar() -
getPieces
-
toString
-
link
-
compile
-
compile
-
compile
public static MessageObject compile(String str, boolean validate, boolean plainOnly, MessageTokenHandler tokenHandler) -
compile
-
compile
public void compile() -
compileToArray
-
compileObject
-
constructHoverEvent
public static net.md_5.bungee.api.chat.HoverEvent constructHoverEvent(net.md_5.bungee.api.chat.BaseComponent[] baseComponents)
-