REFACTOR: Change modid, modname e.t.c
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ package org.examp.john.client;
|
||||
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
|
||||
public class LocalchatClient implements ClientModInitializer {
|
||||
public class MSNexusClient implements ClientModInitializer {
|
||||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
+1
-1
@@ -3,7 +3,7 @@ package org.examp.john.client;
|
||||
import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
|
||||
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;
|
||||
|
||||
public class LocalchatDataGenerator implements DataGeneratorEntrypoint {
|
||||
public class MSNexusDataGenerator implements DataGeneratorEntrypoint {
|
||||
|
||||
@Override
|
||||
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
|
||||
@@ -14,7 +14,7 @@ public class ChatLogger {
|
||||
|
||||
public static void logGlobal(ServerPlayer sender, String message, List<ServerPlayer> recipients) {
|
||||
// Для глобального чату ігноруємо список отримувачів і просто пишемо "everyone"
|
||||
Localchat.magicModLog.info(
|
||||
MSNexus.magicModLog.info(
|
||||
"[CHAT][GLOBAL] {} said: \"{}\" | heard by: everyone | pos: {}",
|
||||
sender.getName().getString(),
|
||||
message,
|
||||
@@ -30,7 +30,7 @@ public class ChatLogger {
|
||||
.map(p -> p.getName().getString())
|
||||
.collect(Collectors.joining(", "));
|
||||
|
||||
Localchat.magicModLog.info(
|
||||
MSNexus.magicModLog.info(
|
||||
"[CHAT][LOCAL] {} said: \"{}\" | heard by: {} | pos: {}",
|
||||
sender.getName().getString(),
|
||||
message,
|
||||
@@ -40,7 +40,7 @@ public class ChatLogger {
|
||||
}
|
||||
|
||||
public static void logUnheard(ServerPlayer sender, String message) {
|
||||
Localchat.magicModLog.info(
|
||||
MSNexus.magicModLog.info(
|
||||
"[CHAT][LOCAL][UNHEARD] {} said: \"{}\" | heard by: nobody | pos: {}",
|
||||
sender.getName().getString(),
|
||||
message,
|
||||
|
||||
+2
-2
@@ -4,8 +4,8 @@ import net.fabricmc.api.ModInitializer;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class Localchat implements ModInitializer {
|
||||
public static final String MOD_ID = "localhost";
|
||||
public class MSNexus implements ModInitializer {
|
||||
public static final String MOD_ID = "msnexus";
|
||||
public static final Logger magicModLog = LoggerFactory.getLogger(MOD_ID);
|
||||
|
||||
@Override
|
||||
@@ -1,29 +1,29 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "localchat",
|
||||
"id": "msnexus",
|
||||
"version": "${version}",
|
||||
"name": "localchat",
|
||||
"name": "msnexus",
|
||||
"description": "",
|
||||
"authors": [],
|
||||
"contact": {},
|
||||
"license": "All-Rights-Reserved",
|
||||
"icon": "assets/localchat/icon.png",
|
||||
"icon": "assets/msnexus/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"fabric-datagen": [
|
||||
"org.examp.john.client.LocalchatDataGenerator"
|
||||
"org.examp.john.client.MSNexusDataGenerator"
|
||||
],
|
||||
"client": [
|
||||
"org.examp.john.client.LocalchatClient"
|
||||
"org.examp.john.client.MSNexusClient"
|
||||
],
|
||||
"main": [
|
||||
"org.examp.john.Localchat"
|
||||
"org.examp.john.MSNexus"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"localchat.mixins.json",
|
||||
"msnexus.mixins.json",
|
||||
{
|
||||
"config": "localchat.client.mixins.json",
|
||||
"config": "msnexus.client.mixins.json",
|
||||
"environment": "client"
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user