commit d24b7f70a08be6b9a1a4af559cb5744106deb28b Author: JFronny Date: Sun Mar 12 16:58:22 2023 +0100 scaffold 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..5d1788f --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,14 @@ +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")}") + + // 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:${prop("modmenu_version")}") +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..0a06bb7 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,18 @@ +# https://fabricmc.net/develop/ +minecraft_version=1.19.4-rc2 +yarn_mappings=build.1 +loader_version=0.14.17 + +maven_group=io.gitlab.jfronny +archives_base_name=better-whitelist + +#modrinth_id=google-chat +#modrinth_required_dependencies=libjf +#modrinth_optional_dependencies=modmenu +#curseforge_id=574331 +#curseforge_required_dependencies=libjf +#curseforge_optional_dependencies=modmenu + +libjf_version=3.5.0-SNAPSHOT +fabric_version=0.75.3+1.19.4 +modmenu_version=6.1.0-beta.3 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..9b0dc1a --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..047c2a4 --- /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 = "better-whitelist" diff --git a/src/main/java/io/gitlab/jfronny/betterwhitelist/Better_whitelist.java b/src/main/java/io/gitlab/jfronny/betterwhitelist/Better_whitelist.java new file mode 100644 index 0000000..9a4b621 --- /dev/null +++ b/src/main/java/io/gitlab/jfronny/betterwhitelist/Better_whitelist.java @@ -0,0 +1,10 @@ +package io.gitlab.jfronny.betterwhitelist; + +import net.fabricmc.api.ModInitializer; + +public class Better_whitelist implements ModInitializer { + @Override + public void onInitialize() { + + } +} diff --git a/src/main/java/io/gitlab/jfronny/betterwhitelist/client/Better_whitelistClient.java b/src/main/java/io/gitlab/jfronny/betterwhitelist/client/Better_whitelistClient.java new file mode 100644 index 0000000..6777f1e --- /dev/null +++ b/src/main/java/io/gitlab/jfronny/betterwhitelist/client/Better_whitelistClient.java @@ -0,0 +1,10 @@ +package io.gitlab.jfronny.betterwhitelist.client; + +import net.fabricmc.api.ClientModInitializer; + +public class Better_whitelistClient implements ClientModInitializer { + @Override + public void onInitializeClient() { + + } +} diff --git a/src/main/resources/better-whitelist.mixins.json b/src/main/resources/better-whitelist.mixins.json new file mode 100644 index 0000000..08ee35f --- /dev/null +++ b/src/main/resources/better-whitelist.mixins.json @@ -0,0 +1,13 @@ +{ + "required": true, + "minVersion": "0.8", + "package": "io.gitlab.jfronny.betterwhitelist.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..16f7317 --- /dev/null +++ b/src/main/resources/fabric.mod.json @@ -0,0 +1,28 @@ +{ + "schemaVersion": 1, + "id": "better-whitelist", + "name": "Better Whitelist", + "version": "${version}", + "description": "A configurable whitelist system for Minecraft", + "authors": ["JFronny"], + "contact": { + "email": "projects.contact@frohnmeyer-wds.de", + "homepage": "https://jfronny.gitlab.io", + "issues": "https://git.frohnmeyer-wds.de/JfMods/Better-Whitelist/issues", + "sources": "https://git.frohnmeyer-wds.de/JfMods/Better-Whitelist" + }, + "license": "MIT", + "icon": "assets/better-whitelist/icon.png", + "environment": "*", + "entrypoints": { + "client": ["io.gitlab.jfronny.betterwhitelist.client.Better_whitelistClient"], + "main": ["io.gitlab.jfronny.betterwhitelist.Better_whitelist"] + }, + "mixins": [ + "better-whitelist.mixins.json" + ], + "depends": { + "fabricloader": ">=0.14.17", + "minecraft": "1.19.3" + } +}