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