Add and fire SystemMessageReceivedEvent

Replaces ClientChatReceivedEvent.System which was not fired due to Mojang changing ChatType to a registry.
This commit is contained in:
LexManos committed 2024-09-11 11:10:41 -07:00
1 parent 7bd50903a6
commit 770298b1d5
6 files changed
+80 -48

No files matched your search

@@ -352,12 +352,6 @@ public class ForgeMod {
public static final RegistryObject<Fluid> MILK = RegistryObject.create(ResourceLocation.withDefaultNamespace("milk"), ForgeRegistries.FLUIDS);
public static final RegistryObject<Fluid> FLOWING_MILK = RegistryObject.create(ResourceLocation.withDefaultNamespace("flowing_milk"), ForgeRegistries.FLUIDS);
/*
private static final ChatTypeDecoration SYSTEM_CHAT_TYPE_DECORATION = new ChatTypeDecoration("forge.chatType.system", List.of(ChatTypeDecoration.Parameter.CONTENT), Style.EMPTY);
private static final DeferredRegister<ChatType> CHAT_TYPES = deferred(Registries.CHAT_TYPE);
public static final RegistryObject<ChatType> SYSTEM_CHAT_TYPE = CHAT_TYPES.register("syste_chat", () -> new ChatType(SYSTEM_CHAT_TYPE_DECORATION, SYSTEM_CHAT_TYPE_DECORATION));
*/
private static ForgeMod INSTANCE;
public static ForgeMod getInstance() {
return INSTANCE;