From 083b765d9a80ea03d59379ae8c25e0bb7806c715 Mon Sep 17 00:00:00 2001 From: MCZME <13183052+mczme@user.noreply.gitee.com> Date: Thu, 1 Aug 2024 02:54:04 +0800 Subject: [PATCH] =?UTF-8?q?mod=E5=9F=BA=E7=A1=80=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=92=8C=E6=90=AD=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMPLATE_LICENSE.txt => LICENSE.txt | 0 gradle.properties | 16 ++++++++-------- gradlew.bat | 2 +- .../examplemod => mczme/lingshi}/Config.java | 2 +- .../examplemod => mczme/lingshi}/ExampleMod.java | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) rename TEMPLATE_LICENSE.txt => LICENSE.txt (100%) rename src/main/java/{com/example/examplemod => mczme/lingshi}/Config.java (98%) rename src/main/java/{com/example/examplemod => mczme/lingshi}/ExampleMod.java (98%) diff --git a/TEMPLATE_LICENSE.txt b/LICENSE.txt similarity index 100% rename from TEMPLATE_LICENSE.txt rename to LICENSE.txt diff --git a/gradle.properties b/gradle.properties index 864d77a..8ab08ec 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Sets default memory used for gradle commands. Can be overridden by user or command line properties. -org.gradle.jvmargs=-Xmx1G +org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false org.gradle.debug=false @@ -26,18 +26,18 @@ loader_version_range=[4,) # The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63} # Must match the String constant located in the main mod class annotated with @Mod. -mod_id=examplemod +mod_id=lingshi # The human-readable display name for the mod. -mod_name=Example Mod +mod_name=LingShi # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. -mod_license=All Rights Reserved +mod_license=MIT # The mod version. See https://semver.org/ -mod_version=1.0.0 +mod_version=0.1.0 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html -mod_group_id=com.example.examplemod +mod_group_id=mczme.lingshi # The authors of the mod. This is a simple text string that is used for display purposes in the mod list. -mod_authors=YourNameHere, OtherNameHere +mod_authors=mczme # The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. -mod_description=Example mod description.\nNewline characters can be used and will be replaced properly. +mod_description=lingshi mod\nXian mod. diff --git a/gradlew.bat b/gradlew.bat index 9b42019..78ab937 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -36,7 +36,7 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" "-Dfile.encoding=UTF-8" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome diff --git a/src/main/java/com/example/examplemod/Config.java b/src/main/java/mczme/lingshi/Config.java similarity index 98% rename from src/main/java/com/example/examplemod/Config.java rename to src/main/java/mczme/lingshi/Config.java index d70d1eb..4278494 100644 --- a/src/main/java/com/example/examplemod/Config.java +++ b/src/main/java/mczme/lingshi/Config.java @@ -1,4 +1,4 @@ -package com.example.examplemod; +package mczme.lingshi; import java.util.List; import java.util.Set; diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/mczme/lingshi/ExampleMod.java similarity index 98% rename from src/main/java/com/example/examplemod/ExampleMod.java rename to src/main/java/mczme/lingshi/ExampleMod.java index 835a48d..07bbad4 100644 --- a/src/main/java/com/example/examplemod/ExampleMod.java +++ b/src/main/java/mczme/lingshi/ExampleMod.java @@ -1,4 +1,4 @@ -package com.example.examplemod; +package mczme.lingshi; import org.slf4j.Logger; @@ -39,7 +39,7 @@ public class ExampleMod { // Define mod id in a common place for everything to reference - public static final String MODID = "examplemod"; + public static final String MODID = "lingshi"; // Directly reference a slf4j logger private static final Logger LOGGER = LogUtils.getLogger(); // Create a Deferred Register to hold Blocks which will all be registered under the "examplemod" namespace