Skip to content

Commit

Permalink
Wiped old 3.X.X code and replaced with new 4.X.X code!
Browse files Browse the repository at this point in the history
  • Loading branch information
XDPXI committed Dec 2, 2024
1 parent 9a80eee commit 6b6977b
Show file tree
Hide file tree
Showing 538 changed files with 240 additions and 9,533 deletions.
45 changes: 42 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@
plugins {
id 'fabric-loom' version '1.7-SNAPSHOT' apply false
id 'net.neoforged.moddev' version '0.1.110' apply false
}
id 'dev.architectury.loom' version '1.7-SNAPSHOT' apply false
id 'architectury-plugin' version '3.4-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
}

architectury {
minecraft = project.minecraft_version
}

allprojects {
group = rootProject.maven_group
version = rootProject.mod_version
}

subprojects {
apply plugin: 'dev.architectury.loom'
apply plugin: 'architectury-plugin'

base {
archivesName = "$rootProject.archives_name-$project.name"
}

repositories {

}

dependencies {
minecraft "net.minecraft:minecraft:$rootProject.minecraft_version"
mappings loom.officialMojangMappings()
}

java {
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 21
}
}
3 changes: 0 additions & 3 deletions buildSrc/build.gradle

This file was deleted.

117 changes: 0 additions & 117 deletions buildSrc/src/main/groovy/multiloader-common.gradle

This file was deleted.

44 changes: 0 additions & 44 deletions buildSrc/src/main/groovy/multiloader-loader.gradle

This file was deleted.

39 changes: 6 additions & 33 deletions common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,38 +1,11 @@
plugins {
id 'multiloader-common'
id 'net.neoforged.moddev'
}

neoForge {
neoFormVersion = neo_form_version
def at = file('src/main/resources/META-INF/accesstransformer.cfg')
if (at.exists()) {
accessTransformers.add(at.absolutePath)
}
parchment {
minecraftVersion = parchment_minecraft
mappingsVersion = parchment_version
}
architectury {
common rootProject.enabled_platforms.split(',')
}

dependencies {
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
compileOnly group: 'io.github.llamalad7', name: 'mixinextras-common', version: '0.3.5'
annotationProcessor group: 'io.github.llamalad7', name: 'mixinextras-common', version: '0.3.5'
}
// We depend on Fabric Loader here to use the Fabric @Environment annotations,
// which get remapped to the correct annotations on each platform.
// Do NOT use other classes from Fabric Loader.
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"

configurations {
commonJava {
canBeResolved = false
canBeConsumed = true
}
commonResources {
canBeResolved = false
canBeConsumed = true
}
}

artifacts {
commonJava sourceSets.main.java.sourceDirectories.singleFile
commonResources sourceSets.main.resources.sourceDirectories.singleFile
}
16 changes: 0 additions & 16 deletions common/src/main/java/dev/xdpxi/xdlib/CommonClass.java

This file was deleted.

10 changes: 0 additions & 10 deletions common/src/main/java/dev/xdpxi/xdlib/Constants.java

This file was deleted.

9 changes: 9 additions & 0 deletions common/src/main/java/dev/xdpxi/xdlib/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package dev.xdpxi.xdlib;

public final class Main {
public static final String MOD_ID = "xdlib";

public static void init() {

}
}
16 changes: 0 additions & 16 deletions common/src/main/java/dev/xdpxi/xdlib/platform/Services.java

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions common/src/main/resources/pack.mcmeta

This file was deleted.

9 changes: 4 additions & 5 deletions common/src/main/resources/xdlib.mixins.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"required": true,
"minVersion": "0.8",
"package": "dev.xdpxi.xdlib.mixin",
"refmap": "${mod_id}.refmap.json",
"compatibilityLevel": "JAVA_18",
"mixins": [],
"compatibilityLevel": "JAVA_21",
"minVersion": "0.8",
"client": [
],
"server": [],
"mixins": [
],
"injectors": {
"defaultRequire": 1
}
Expand Down
Loading

0 comments on commit 6b6977b

Please sign in to comment.