Compare commits

...

4 Commits

94 changed files with 1013 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
# gradle
.gradle/
build/
# idea
/.idea/
# eclipse
/bin/
*.launch
.settings
.metadata
.classpath
.project
# game
/run/

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Hardcore Ender Expansion 2
Work in progress. PRs will not be accepted before release.

12
build.gradle.kts Normal file
View File

@ -0,0 +1,12 @@
plugins {
idea
}
group = "com.chylex.hee"
idea {
module {
excludeDirs.add(file("gradle/wrapper"))
excludeDirs.add(file("run"))
}
}

24
gradle.properties Normal file
View File

@ -0,0 +1,24 @@
# Mod
modId=hee
modName=Hardcore Ender Expansion 2
modDescription=
modVersion=2.0.0-dev
modAuthor=chylex
modLicense=TODO
modURL=https://hee.chylex.com
modAuthorsURL=https://hee.chylex.com/authors
modSourcesURL=https://github.com/chylex/Hardcore-Ender-Expansion-2
modIssuesURL=https://github.com/chylex/Hardcore-Ender-Expansion-2/issues
# Dependencies
minecraftVersion=1.19.3
parchmentVersion=2022.12.18
forgeVersion=44.1.16
# Constraints
minecraftVersionRange=[1.19.3,1.20)
forgeVersionRange=[44.1.0,)
# Gradle
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

2
gradle/plugins/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.gradle/
/build/

View File

@ -0,0 +1,35 @@
plugins {
idea
`kotlin-dsl`
`maven-publish`
}
group = "com.chylex.hee.gradle"
version = "1"
idea {
module {
excludeDirs.add(file("gradle"))
excludeDirs.add(file("repository"))
}
}
repositories {
maven(url = "https://maven.minecraftforge.net")
maven(url = "https://maven.parchmentmc.org")
maven(url = "https://repo.spongepowered.org/maven")
gradlePluginPortal()
}
dependencies {
implementation(group = "net.minecraftforge.gradle", name = "ForgeGradle", version = "5.1.+")
implementation(group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version = "1.8.0")
implementation(group = "org.parchmentmc.librarian.forgegradle", name = "org.parchmentmc.librarian.forgegradle.gradle.plugin", version = "1.+")
implementation(group = "org.spongepowered", name = "mixingradle", version = "0.7-SNAPSHOT")
}
publishing {
repositories {
maven(url = projectDir.resolve("repository"))
}
}

View File

@ -0,0 +1 @@
org.gradle.daemon=false

View File

@ -0,0 +1 @@
../../wrapper

View File

@ -0,0 +1 @@
327ad8bacd3493a78c16498cab177afd

View File

@ -0,0 +1 @@
25b98e7445eeea1915e4f1350fb98d41b2711111

View File

@ -0,0 +1 @@
34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e

View File

@ -0,0 +1 @@
c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39

View File

@ -0,0 +1,94 @@
{
"formatVersion": "1.1",
"component": {
"group": "com.chylex.hee.gradle",
"module": "plugins",
"version": "1",
"attributes": {
"org.gradle.status": "release"
}
},
"createdBy": {
"gradle": {
"version": "7.5.1"
}
},
"variants": [
{
"name": "apiElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-api",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"files": [
{
"name": "plugins-1.jar",
"url": "plugins-1.jar",
"size": 853930,
"sha512": "c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39",
"sha256": "34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e",
"sha1": "25b98e7445eeea1915e4f1350fb98d41b2711111",
"md5": "327ad8bacd3493a78c16498cab177afd"
}
]
},
{
"name": "runtimeElements",
"attributes": {
"org.gradle.category": "library",
"org.gradle.dependency.bundling": "external",
"org.gradle.jvm.environment": "standard-jvm",
"org.gradle.jvm.version": 17,
"org.gradle.libraryelements": "jar",
"org.gradle.usage": "java-runtime",
"org.jetbrains.kotlin.platform.type": "jvm"
},
"dependencies": [
{
"group": "net.minecraftforge.gradle",
"module": "ForgeGradle",
"version": {
"requires": "5.1.+"
}
},
{
"group": "org.jetbrains.kotlin",
"module": "kotlin-gradle-plugin",
"version": {
"requires": "1.8.0"
}
},
{
"group": "org.parchmentmc.librarian.forgegradle",
"module": "org.parchmentmc.librarian.forgegradle.gradle.plugin",
"version": {
"requires": "1.+"
}
},
{
"group": "org.spongepowered",
"module": "mixingradle",
"version": {
"requires": "0.7-SNAPSHOT"
}
}
],
"files": [
{
"name": "plugins-1.jar",
"url": "plugins-1.jar",
"size": 853930,
"sha512": "c6c42e334870729a42c8ae00ba1bc586a20de775e5cb8dfa3b4e85d8c2b1f7c5d41046e8aeae1a62edd505f619fe391744e20dd89528088c695f414706550e39",
"sha256": "34f79fc527b7a225266633b1e95cf9fd40b9c0ae90361a95db4b5b3b2f705c5e",
"sha1": "25b98e7445eeea1915e4f1350fb98d41b2711111",
"md5": "327ad8bacd3493a78c16498cab177afd"
}
]
}
]
}

View File

@ -0,0 +1 @@
d1b393ef437f35e9a27691366a95e39e

View File

@ -0,0 +1 @@
d5114a4b883290dfdf4321be8df4f60f83a18e21

View File

@ -0,0 +1 @@
1ddf9b3b4cacc4eed876cab4d4766d93e8ce6833620d0bc4b96dc21caa44e172

View File

@ -0,0 +1 @@
4d69cfc4d425c1c729fceab056d2607ac8e88f109db8725448a313a6fda01b245533638006cd0ea99025c8ca7f0350dcc596108d7512c055906c274e1dd35814

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- This module was also published with a richer model, Gradle metadata, -->
<!-- which should be used instead. Do not delete the following line which -->
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
<!-- that they should prefer consuming it instead. -->
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>net.minecraftforge.gradle</groupId>
<artifactId>ForgeGradle</artifactId>
<version>5.1.+</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-gradle-plugin</artifactId>
<version>1.8.0</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.parchmentmc.librarian.forgegradle</groupId>
<artifactId>org.parchmentmc.librarian.forgegradle.gradle.plugin</artifactId>
<version>1.+</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
<artifactId>mixingradle</artifactId>
<version>0.7-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
a2830a30f38843cd60e6707532e76156

View File

@ -0,0 +1 @@
21310571fe96a291d92ccf3cc5b41045c012043c

View File

@ -0,0 +1 @@
cb4f23b2e04592b37a278639894e3e3c72603b778ae5856cab36637b444e775e

View File

@ -0,0 +1 @@
e91efadc717db22f35b383d6b1439fff43932b4139a67239889e86bb142ecc35b01bb505cc254fc982e1a693916117a6e6faf12a689060e917d45f20c6fc23a5

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104731</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
532cef5f8ebe61c698d6ebd2d55ccb11

View File

@ -0,0 +1 @@
66a5fe2b962b9bbe284999386fc6bb91e26e83c1

View File

@ -0,0 +1 @@
2fe25a6a6810823290633311f64831e3a8c4661d2a6688381b03fbba94c6e04b

View File

@ -0,0 +1 @@
8be0060fbd77658fd69abca1c97cd682bd683f024cfe16d9790c6cb95dc179e5c024f412c181ae4b29cf15843b953d5aafafcb05df6564fdfe99be7e496bd538

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.forge</groupId>
<artifactId>hee.forge.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
8f005d28c8899738a612cf5e58ab763b

View File

@ -0,0 +1 @@
72bc41ff758a20023ea33ecb4895a5703d20f769

View File

@ -0,0 +1 @@
c87d9c1f155e8d57634be0308af049c602becd2e9ce3be9a32000eb534d2d150

View File

@ -0,0 +1 @@
91c2b331568b37c9c19a2935a0066d6b3c9cfb7c32a59d93a379b65708158303b1768bbf31b74f1bc96cf542019a6cbba2d3a340055d26338ff0b025a93ba2fc

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.forge</groupId>
<artifactId>hee.forge.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
86d80c0b115a35e03cae0e9dab0be75b

View File

@ -0,0 +1 @@
16499be6397dd63dc7e81142f3cda1f8109ca9f0

View File

@ -0,0 +1 @@
635115d09568353c8b7c6091e1ee7c05fa33da71d12cea6a91d373943df613d4

View File

@ -0,0 +1 @@
68d68d2f96b91e8fef0eaec55e3e260f0d8c4418610fd96fd41669b9eb84144bb2c86aae0fe320b4ca943a74d64b4144bd5214c76a06bc8d2e481cd0685b304d

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.java</groupId>
<artifactId>hee.java.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
ac1b7ed6a176da9587ae6f621f7e24bf

View File

@ -0,0 +1 @@
11fec6852ff9a0f76628c1b4ff1ffe4c75c914fa

View File

@ -0,0 +1 @@
fe771766068f84f95b47a44c641271a52a088a7a4130a2d8024004e8912a0554

View File

@ -0,0 +1 @@
051560621558bd04e007a6a67f2e53f718375014720602bb675ccafc598f38fc81966d779191cc5cd5335d8d16a303d09dab65c18d1d6fdf39ad186ec073c9ee

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.java</groupId>
<artifactId>hee.java.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
ddc2a83e0d723f35a9d198463f75afe9

View File

@ -0,0 +1 @@
800fb25b482d0d7deafb3b3d4ba8a2107d685023

View File

@ -0,0 +1 @@
adb92ad13ec8cf614832e81259cbbf275f8cefc6ca85efb0e0b19f72508b6b8b

View File

@ -0,0 +1 @@
b53d2d545bedaf6ac0b26d2d66a5dd1f69dc02280468078b0f3ae60ddb57b824a902e9cb97da903ccc175c4d04a13dfa52a227277deb07a6176ecd6b3355f022

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.kotlin</groupId>
<artifactId>hee.kotlin.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
98e1ec575082911834164fdacc463b55

View File

@ -0,0 +1 @@
bb72ef43ab5bbe88d0512362f170fc0ae45304ac

View File

@ -0,0 +1 @@
667ba69ba9834612da77498c9d321a626375640aa25a006defb4cac680f9c916

View File

@ -0,0 +1 @@
04ed0c0b11e8436f73ff45e73a08e6181c1dfe9b30b6943e0105d25cdded9ef8e28a22b84565afb139d111671072ba4c1acc04e79d4efed2d5195cab984a5e37

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.kotlin</groupId>
<artifactId>hee.kotlin.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
2a6791fc10d18700c4d2d90ee42bb10d

View File

@ -0,0 +1 @@
9eba40923a5db98ff8d3664dc0e5fbb70a0f1f35

View File

@ -0,0 +1 @@
9200a3c10b73033039a76de670c88977c3f5bd2a57bb55b446b76f1ec0f9032f

View File

@ -0,0 +1 @@
357416a672d0256c6162304e1453d5776683f5d934d02a77c6714ffe040d70f4bf3566364c07a8651146a3d4b8f6762dd43fc14301567e601b6c0f2ac40e239e

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.minecraft</groupId>
<artifactId>hee.minecraft.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
ffe775f0b29a8ca11d52de40fb60703c

View File

@ -0,0 +1 @@
f5a290f8d21d893403809403f816bd759edb0ae5

View File

@ -0,0 +1 @@
d8fc7322ccf9830a7d27c7e757ebb4a2fac0e9192f4afcc848c7824c1cd3c47d

View File

@ -0,0 +1 @@
92d3d35dd0f86697d5b4761b6f6a82dbad7e7c7dd2b0508886cbb791784e5ce21eed12cd728b231778b0a94999dec442ee4ccc07d7d4c41695f2f42564a31474

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.minecraft</groupId>
<artifactId>hee.minecraft.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
2e495e0fbf39de9f25fc5b1d1a47553b

View File

@ -0,0 +1 @@
2fc69e2b7ab6a2a76dd241cf421ffca95d4777f6

View File

@ -0,0 +1 @@
937e32cb00f57a532dbb69008764a1f4b67be899889b842753261fccb6930b93

View File

@ -0,0 +1 @@
b4b0e08884c65caa43daac900bd30a0792257d161e9ce37da606f874f8ff5427dc8b4b1d8bdd5c49e4629693ed996ce520fbf1b471ecbe34985e6d48a3aa87b4

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>hee.vanilla</groupId>
<artifactId>hee.vanilla.gradle.plugin</artifactId>
<version>1</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1 @@
4a04806ae7945156f7f0946751946fa6

View File

@ -0,0 +1 @@
d7c3731fd415e6c27f77085956a316c1ceb847b5

View File

@ -0,0 +1 @@
24b56698554741bc8c8b803dcf332e48598210fda02bf5c1c3324a52765f5aa1

View File

@ -0,0 +1 @@
02ae32e3dba0656a26c6d0fc57e45d0ae6b962dadc286e1e08467c06d033ddb046451d23beef2a4b0b0688793a7b6b6ca7b3d5adfa126a1f0d89dd39cb1749af

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata>
<groupId>hee.vanilla</groupId>
<artifactId>hee.vanilla.gradle.plugin</artifactId>
<versioning>
<latest>1</latest>
<release>1</release>
<versions>
<version>1</version>
</versions>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -0,0 +1 @@
f87c739f02b985a416901ab71df1c4cf

View File

@ -0,0 +1 @@
b9f382aaec83f4269186a18019505ea3f76030cb

View File

@ -0,0 +1 @@
662dc1f366b013f8a79e49f3e960d010aef8d92453b1df43407422af10741b39

View File

@ -0,0 +1 @@
d507c225b69d9c6e69d3a2e1021fee92a51999a893a7af01ad210db55c3493d8afc047e194dddaab776626a9c48cbaa1202b4ced063e41213ed9abb18b9b6517

View File

@ -0,0 +1 @@
rootProject.name = "plugins"

View File

@ -0,0 +1,10 @@
plugins {
id("hee.minecraft")
}
val minecraftVersion: String by project
val forgeVersion: String by project
dependencies {
minecraft("net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}")
}

View File

@ -0,0 +1,13 @@
plugins {
java
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

View File

@ -0,0 +1,18 @@
plugins {
id("hee.java")
kotlin("jvm")
}
sourceSets {
main {
java.setSrcDirs(emptyList<File>())
}
test {
java.setSrcDirs(emptyList<File>())
}
}
dependencies {
implementation(kotlin("stdlib"))
}

View File

@ -0,0 +1,43 @@
plugins {
idea
id("hee.kotlin")
id("net.minecraftforge.gradle")
id("org.parchmentmc.librarian.forgegradle")
id("org.spongepowered.mixin")
}
idea {
module {
excludeDirs.add(file("src/main/java"))
excludeDirs.add(file("src/test/java"))
}
}
val minecraftVersion: String by project
val parchmentVersion: String by project
minecraft {
mappings("parchment", "${parchmentVersion}-${minecraftVersion}")
}
val modId: String by project
val modName: String by project
val modDescription: String by project
val modVersion: String by project
val modLicense: String by project
val modURL: String by project
val modAuthorsURL: String by project
val modSourcesURL: String by project
val modIssuesURL: String by project
tasks.processResources {
inputs.property("id", modId)
inputs.property("name", modName)
inputs.property("description", modDescription)
inputs.property("version", modVersion)
inputs.property("license", modLicense)
inputs.property("modURL", modURL)
inputs.property("authorsURL", modAuthorsURL)
inputs.property("sourcesURL", modSourcesURL)
inputs.property("issuesURL", modIssuesURL)
}

View File

@ -0,0 +1,9 @@
plugins {
id("hee.minecraft")
}
val minecraftVersion: String by project
dependencies {
minecraft("net.minecraft:joined:${minecraftVersion}")
}

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

240
gradlew vendored Normal file
View File

@ -0,0 +1,240 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"

91
gradlew.bat vendored Normal file
View File

@ -0,0 +1,91 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
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"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@ -0,0 +1,77 @@
import net.minecraftforge.gradle.common.util.RunConfig
val modId: String by project
val modName: String by project
val modAuthor: String by project
plugins {
id("hee.forge")
}
repositories {
mavenCentral()
maven(url = "https://thedarkcolour.github.io/KotlinForForge/")
}
minecraft {
fun RunConfig.registerMod(projects: Collection<Project>) {
mods {
register(modId) {
sources(projects.mapNotNull { it.extensions.findByType<SourceSetContainer>()?.findByName("main") })
}
}
}
fun RunConfig.configureRun() {
taskName(name)
workingDirectory(rootProject.file("run"))
ideaModule("${rootProject.name}${path.replace(':', '.')}.main")
property("forge.logging.markers", "REGISTRIES")
property("forge.logging.console.level", "debug")
property("forge.enabledGameTestNamespaces", modId)
}
fun runGame(run: RunConfig) = with(run) {
configureRun()
registerMod(rootProject.subprojects)
}
runs {
create("client", ::runGame)
create("server", ::runGame)
}
}
fun DependencyHandler.implementationProject(name: String) {
implementation(project(name)) {
exclude("net.minecraft", "joined")
}
}
dependencies {
implementation("thedarkcolour:kotlinforforge:4.0.0")
}
val minecraftVersionRange: String by project
val forgeVersionRange: String by project
tasks.processResources {
inputs.property("minecraftVersionRange", minecraftVersionRange)
inputs.property("forgeVersionRange", forgeVersionRange)
expand(inputs.properties)
}
tasks.jar {
manifest {
attributes("Specification-Title" to modId)
attributes("Specification-Vendor" to modAuthor)
attributes("Specification-Version" to "1")
attributes("Implementation-Title" to modName)
attributes("Implementation-Version" to archiveVersion)
attributes("Implementation-Vendor" to modAuthor)
}
finalizedBy("reobfJar")
}

View File

@ -0,0 +1,6 @@
package com.chylex.hee
import net.minecraftforge.fml.common.Mod
@Mod("hee")
object HardcoreEnderExpansionMod

View File

@ -0,0 +1,27 @@
modLoader="kotlinforforge"
loaderVersion="[3.10,)"
license = "${license}"
issueTrackerURL = "${issuesURL}"
[[mods]]
modId = "${id}"
displayName = "${name}"
displayURL = "${modURL}"
description = "${description}"
authors = "${authorsURL}"
version = "${version}"
[[dependencies.${id}]]
modId = "minecraft"
mandatory = true
versionRange = "${minecraftVersionRange}"
ordering = "NONE"
side = "BOTH"
[[dependencies.${id}]]
modId = "forge"
mandatory = true
versionRange = "${forgeVersionRange}"
ordering = "NONE"
side = "BOTH"

View File

@ -0,0 +1,8 @@
{
"pack": {
"description": "${name}",
"pack_format": 12,
"forge:resource_pack_format": 12,
"forge:data_pack_format": 10
}
}

28
settings.gradle.kts Normal file
View File

@ -0,0 +1,28 @@
@file:Suppress("UnstableApiUsage")
rootProject.name = "hee"
pluginManagement {
repositories {
maven(url = rootDir.resolve("gradle/plugins/repository"))
maven(url = "https://maven.minecraftforge.net")
maven(url = "https://maven.parchmentmc.org")
maven(url = "https://repo.spongepowered.org/maven")
}
plugins {
id("hee.forge") version "1"
id("hee.java") version "1"
id("hee.kotlin") version "1"
id("hee.vanilla") version "1"
}
}
dependencyResolutionManagement {
@Suppress("ConvertLambdaToReference")
repositories {
mavenCentral()
}
}
include(":loaders:forge")