From f62046ade08b917e98899b1e030afadc0373e038 Mon Sep 17 00:00:00 2001 From: JFronny Date: Sat, 18 Mar 2023 15:40:57 +0100 Subject: [PATCH] scaffold --- .gitignore | 118 ++++++++++++++++++ LICENSE | 21 ++++ build.gradle.kts | 15 +++ gradle.properties | 10 ++ settings.gradle.kts | 9 ++ .../jfronny/chattransform/Chat_transform.java | 10 ++ .../client/Chat_transformClient.java | 10 ++ src/main/resources/chat-transform.mixins.json | 13 ++ src/main/resources/fabric.mod.json | 27 ++++ 9 files changed, 233 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 build.gradle.kts create mode 100644 gradle.properties create mode 100644 settings.gradle.kts create mode 100644 src/main/java/io/gitlab/jfronny/chattransform/Chat_transform.java create mode 100644 src/main/java/io/gitlab/jfronny/chattransform/client/Chat_transformClient.java create mode 100644 src/main/resources/chat-transform.mixins.json create mode 100644 src/main/resources/fabric.mod.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c37caf --- /dev/null +++ b/.gitignore @@ -0,0 +1,118 @@ +# User-specific stuff +.idea/ + +*.iml +*.ipr +*.iws + +# IntelliJ +out/ +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +.gradle +build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Cache of project +.gradletasknamecache + +**/build/ + +# Common working directory +run/ + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a0e67c5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2023 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..3814785 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,15 @@ +import io.gitlab.jfronny.scripts.* + +plugins { + id("jfmod") version "1.3-SNAPSHOT" +} + +dependencies { + modImplementation("io.gitlab.jfronny.libjf:libjf-config-core-v1:${prop("libjf_version")}") + modImplementation("io.gitlab.jfronny.libjf:libjf-translate-v1:${prop("libjf_version")}") + + // Dev env + modLocalRuntime("io.gitlab.jfronny.libjf:libjf-config-ui-tiny-v1:${prop("libjf_version")}") + modLocalRuntime("io.gitlab.jfronny.libjf:libjf-devutil:${prop("libjf_version")}") + modLocalRuntime("com.terraformersmc:modmenu:6.1.0-rc.4") +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..09933fa --- /dev/null +++ b/gradle.properties @@ -0,0 +1,10 @@ +# https://fabricmc.net/develop/ +minecraft_version=1.19.4 +yarn_mappings=build.1 +loader_version=0.14.17 + +maven_group=io.gitlab.jfronny +archives_base_name=chat-transform + +libjf_version=3.7.0 +fabric_version=0.75.3+1.19.4 diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..bf88db9 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,9 @@ +pluginManagement { + repositories { + maven("https://maven.fabricmc.net/") // FabricMC + maven("https://maven.frohnmeyer-wds.de/artifacts") // scripts + gradlePluginPortal() + } +} + +rootProject.name = "chat-transform" diff --git a/src/main/java/io/gitlab/jfronny/chattransform/Chat_transform.java b/src/main/java/io/gitlab/jfronny/chattransform/Chat_transform.java new file mode 100644 index 0000000..6c41f88 --- /dev/null +++ b/src/main/java/io/gitlab/jfronny/chattransform/Chat_transform.java @@ -0,0 +1,10 @@ +package io.gitlab.jfronny.chattransform; + +import net.fabricmc.api.ModInitializer; + +public class Chat_transform implements ModInitializer { + @Override + public void onInitialize() { + + } +} diff --git a/src/main/java/io/gitlab/jfronny/chattransform/client/Chat_transformClient.java b/src/main/java/io/gitlab/jfronny/chattransform/client/Chat_transformClient.java new file mode 100644 index 0000000..c78806e --- /dev/null +++ b/src/main/java/io/gitlab/jfronny/chattransform/client/Chat_transformClient.java @@ -0,0 +1,10 @@ +package io.gitlab.jfronny.chattransform.client; + +import net.fabricmc.api.ClientModInitializer; + +public class Chat_transformClient implements ClientModInitializer { + @Override + public void onInitializeClient() { + + } +} diff --git a/src/main/resources/chat-transform.mixins.json b/src/main/resources/chat-transform.mixins.json new file mode 100644 index 0000000..7378614 --- /dev/null +++ b/src/main/resources/chat-transform.mixins.json @@ -0,0 +1,13 @@ +{ + "required": true, + "minVersion": "0.8", + "package": "io.gitlab.jfronny.chattransform.mixin", + "compatibilityLevel": "JAVA_17", + "mixins": [ + ], + "client": [ + ], + "injectors": { + "defaultRequire": 1 + } +} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json new file mode 100644 index 0000000..924487a --- /dev/null +++ b/src/main/resources/fabric.mod.json @@ -0,0 +1,27 @@ +{ + "schemaVersion": 1, + "id": "chat-transform", + "version": "${version}", + "name": "chat-transform", + "description": "", + "authors": [], + "contact": {}, + "license": "MIT", + "icon": "assets/chat-transform/icon.png", + "environment": "*", + "entrypoints": { + "client": [ + "io.gitlab.jfronny.chattransform.client.Chat_transformClient" + ], + "main": [ + "io.gitlab.jfronny.chattransform.Chat_transform" + ] + }, + "mixins": [ + "chat-transform.mixins.json" + ], + "depends": { + "fabricloader": ">=0.14.17", + "minecraft": "1.19.4" + } +}