@ThreadSafe public interface ChatFormatter extends Registry<ChatIdentityFormatter>
To access this handler, use this code:
ChatFormatter handler = Registered.chatFormatter();
Modifier and Type | Method and Description |
---|---|
String |
format(String message,
Player player)
Obtains the formatted string, not including the message that will be sent
|
void |
setFormatter(ChatIdentityFormatter provider,
Plugin plugin)
Sets the provider of the chat format, performing the default overriding logic of the original provider
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
void setFormatter(ChatIdentityFormatter provider, Plugin plugin)
The provider is notified before it is replaced, so do not try to replace the provider in the overriden method
provider
- the provider to useplugin
- the plugin that registers the new providerCopyright © 2016. All rights reserved.