use of org.lanternpowered.server.network.objects.LocalizedText in project LanternServer by LanternPowered.
the class ChatTypeRegistryModule method registerDefaults.
@Override
public void registerDefaults() {
register(new LanternChatType("minecraft", "chat", (text, locale) -> new MessagePlayOutChatMessage(new LocalizedText(text, locale), MessagePlayOutChatMessage.Type.CHAT)));
register(new LanternChatType("minecraft", "action_bar", (text, locale) -> new MessagePlayOutTitle.SetActionbarTitle(new LocalizedText(text, locale))));
register(new LanternChatType("minecraft", "system", (text, locale) -> new MessagePlayOutChatMessage(new LocalizedText(text, locale), MessagePlayOutChatMessage.Type.SYSTEM)));
}
Aggregations