use of org.lanternpowered.server.text.FormattingCodeTextSerializer in project LanternServer by LanternPowered.
the class TextSerializersRegistryModule method registerDefaults.
@EarlyRegistration
@Override
public void registerDefaults() {
register(new PlainTextSerializer("minecraft", "plain"));
register(new FormattingCodeTextSerializer("minecraft", "legacy_formatting_code", TextConstants.LEGACY_CHAR));
register(new FormattingCodeTextSerializer("minecraft", "formatting_code", '&'));
register(new LanternJsonTextSerializer("minecraft", "json", Lantern.getGame().getRegistry().getRegistryModule(TranslationManagerRegistryModule.class).get().getTranslationManager()));
}
Aggregations