1
0
mirror of https://github.com/chylex/Hardcore-Ender-Expansion-2.git synced 2024-11-25 13:42:44 +01:00

Compare commits

..

4 Commits

106 changed files with 492 additions and 304 deletions

22
.gitignore vendored
View File

@ -1,15 +1,17 @@
# IntelliJ
/.idea/
*.iml
*.ipr
*.iws
# Gradle
# gradle
.gradle/
build/
# Game
# idea
/.idea/
# eclipse
/bin/
*.launch
.settings
.metadata
.classpath
.project
# game
/run/

View File

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

View File

@ -1,17 +1,24 @@
# Mod
group=com.chylex.hee
version=2.0.0-dev
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
neoForgeVersion=20.4.162-beta
kotlinForForgeVersion=4.10.0
minecraftVersion=1.19.3
parchmentVersion=2022.12.18
forgeVersion=44.1.16
# Constraints
minecraftVersionRange=[1.20.4,)
neoForgeVersionRange=(20.4.161,)
kotlinForForgeVersionRange=[4.10.0,)
minecraftVersionRange=[1.19.3,1.20)
forgeVersionRange=[44.1.0,)
# Gradle
org.gradle.jvmargs=-Xmx3G
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.daemon=false

View File

@ -1,10 +1,2 @@
# IntelliJ
/.idea/
*.iml
*.ipr
*.iws
# Gradle
/gradle/wrapper/gradle-wrapper.jar
/.gradle/
/build/

View File

@ -15,13 +15,17 @@ idea {
}
repositories {
maven(url = "https://maven.minecraftforge.net")
maven(url = "https://maven.parchmentmc.org")
maven(url = "https://repo.spongepowered.org/maven")
gradlePluginPortal()
maven(url = "https://maven.neoforged.net/releases") { name = "NeoForge" }
}
dependencies {
implementation(group = "net.neoforged.gradle", name = "userdev", version = "7.0.93")
implementation(group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version = "1.9.22")
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 {

View File

@ -1,6 +1 @@
# Gradle
org.gradle.caching=true
org.gradle.parallel=true
# Publishing
systemProp.org.gradle.internal.publish.checksums.insecure=true
org.gradle.daemon=false

View File

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

View File

@ -1,7 +0,0 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -1 +0,0 @@
8625fdab93abbf9771592aa5f11955074d3ebc90

View File

@ -1,80 +0,0 @@
{
"formatVersion": "1.1",
"component": {
"group": "com.chylex.hee.gradle",
"module": "hee-gradle-plugins",
"version": "1",
"attributes": {
"org.gradle.status": "release"
}
},
"createdBy": {
"gradle": {
"version": "8.6"
}
},
"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": "hee-gradle-plugins-1.jar",
"url": "hee-gradle-plugins-1.jar",
"size": 720929,
"sha512": "ce831f763f1ea8f746be1fad620c48a9af1ef4fff7554b8b71659fbce3cef18511658d33e74a4fb828963fc24ab71054144506bce2183c230eb22b7a4d7b5701",
"sha256": "98abc2b58bb424374c73a093b53665d22bbff48c967330a470813438b1c0d08d",
"sha1": "8625fdab93abbf9771592aa5f11955074d3ebc90",
"md5": "42f393b1af836d81c0685598ecb1a89b"
}
]
},
{
"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.neoforged.gradle",
"module": "userdev",
"version": {
"requires": "7.0.93"
}
},
{
"group": "org.jetbrains.kotlin",
"module": "kotlin-gradle-plugin",
"version": {
"requires": "1.9.22"
}
}
],
"files": [
{
"name": "hee-gradle-plugins-1.jar",
"url": "hee-gradle-plugins-1.jar",
"size": 720929,
"sha512": "ce831f763f1ea8f746be1fad620c48a9af1ef4fff7554b8b71659fbce3cef18511658d33e74a4fb828963fc24ab71054144506bce2183c230eb22b7a4d7b5701",
"sha256": "98abc2b58bb424374c73a093b53665d22bbff48c967330a470813438b1c0d08d",
"sha1": "8625fdab93abbf9771592aa5f11955074d3ebc90",
"md5": "42f393b1af836d81c0685598ecb1a89b"
}
]
}
]
}

View File

@ -1 +0,0 @@
bc0d28a9c647edb17e260da2219ae765873c2ac3

View File

@ -1 +0,0 @@
b9bcb22e5e722ddc506c20c71c307819a4221633

View File

@ -1 +0,0 @@
ee287950a70b8a7c180ca0c8770bd29b

View File

@ -1 +0,0 @@
7624af63729550165bc4b33206660d1dfb9d6f63

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

@ -7,19 +7,31 @@
<!-- do_not_remove: published-with-gradle-metadata -->
<modelVersion>4.0.0</modelVersion>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>hee-gradle-plugins</artifactId>
<artifactId>plugins</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>net.neoforged.gradle</groupId>
<artifactId>userdev</artifactId>
<version>7.0.93</version>
<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.9.22</version>
<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>

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

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

@ -8,7 +8,7 @@
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>hee-gradle-plugins</artifactId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>

View File

@ -1 +1 @@
f196bd1a3bc41dee8da6f62de657232d
ac1b7ed6a176da9587ae6f621f7e24bf

View File

@ -1 +1 @@
28057427bd53cdd856eaf9ee66a132d9a1125be1
11fec6852ff9a0f76628c1b4ff1ffe4c75c914fa

View File

@ -0,0 +1 @@
fe771766068f84f95b47a44c641271a52a088a7a4130a2d8024004e8912a0554

View File

@ -0,0 +1 @@
051560621558bd04e007a6a67f2e53f718375014720602bb675ccafc598f38fc81966d779191cc5cd5335d8d16a303d09dab65c18d1d6fdf39ad186ec073c9ee

View File

@ -8,6 +8,6 @@
<versions>
<version>1</version>
</versions>
<lastUpdated>20240219200634</lastUpdated>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -1 +1 @@
fc0d8363883a1491b8eb9aee24ca6403
ddc2a83e0d723f35a9d198463f75afe9

View File

@ -1 +1 @@
c06522e4d92f148b720287c643661e461c91b62a
800fb25b482d0d7deafb3b3d4ba8a2107d685023

View File

@ -0,0 +1 @@
adb92ad13ec8cf614832e81259cbbf275f8cefc6ca85efb0e0b19f72508b6b8b

View File

@ -0,0 +1 @@
b53d2d545bedaf6ac0b26d2d66a5dd1f69dc02280468078b0f3ae60ddb57b824a902e9cb97da903ccc175c4d04a13dfa52a227277deb07a6176ecd6b3355f022

View File

@ -8,7 +8,7 @@
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>hee-gradle-plugins</artifactId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>

View File

@ -1 +1 @@
8c4f03e97711738d21870d5a9918bc7e
98e1ec575082911834164fdacc463b55

View File

@ -1 +1 @@
32e486aa78a2b3428b3f1151dbc7fbf674d4b009
bb72ef43ab5bbe88d0512362f170fc0ae45304ac

View File

@ -0,0 +1 @@
667ba69ba9834612da77498c9d321a626375640aa25a006defb4cac680f9c916

View File

@ -0,0 +1 @@
04ed0c0b11e8436f73ff45e73a08e6181c1dfe9b30b6943e0105d25cdded9ef8e28a22b84565afb139d111671072ba4c1acc04e79d4efed2d5195cab984a5e37

View File

@ -8,6 +8,6 @@
<versions>
<version>1</version>
</versions>
<lastUpdated>20240219200634</lastUpdated>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -1 +1 @@
fb4927d7ecb6f5d699ae818cd32e6d2c
2a6791fc10d18700c4d2d90ee42bb10d

View File

@ -1 +1 @@
8634ddd9fe7af67ab0703ac73dfffad531005f44
9eba40923a5db98ff8d3664dc0e5fbb70a0f1f35

View File

@ -0,0 +1 @@
9200a3c10b73033039a76de670c88977c3f5bd2a57bb55b446b76f1ec0f9032f

View File

@ -0,0 +1 @@
357416a672d0256c6162304e1453d5776683f5d934d02a77c6714ffe040d70f4bf3566364c07a8651146a3d4b8f6762dd43fc14301567e601b6c0f2ac40e239e

View File

@ -8,7 +8,7 @@
<dependencies>
<dependency>
<groupId>com.chylex.hee.gradle</groupId>
<artifactId>hee-gradle-plugins</artifactId>
<artifactId>plugins</artifactId>
<version>1</version>
</dependency>
</dependencies>

View File

@ -1 +1 @@
e600fee6a3545c69c77dc076b28eb823
ffe775f0b29a8ca11d52de40fb60703c

View File

@ -1 +1 @@
7e65b2d10962b59d1ddc7cfcf54b6db6c21c384b
f5a290f8d21d893403809403f816bd759edb0ae5

View File

@ -0,0 +1 @@
d8fc7322ccf9830a7d27c7e757ebb4a2fac0e9192f4afcc848c7824c1cd3c47d

View File

@ -0,0 +1 @@
92d3d35dd0f86697d5b4761b6f6a82dbad7e7c7dd2b0508886cbb791784e5ce21eed12cd728b231778b0a94999dec442ee4ccc07d7d4c41695f2f42564a31474

View File

@ -8,6 +8,6 @@
<versions>
<version>1</version>
</versions>
<lastUpdated>20240219200634</lastUpdated>
<lastUpdated>20230219104724</lastUpdated>
</versioning>
</metadata>

View File

@ -1 +1 @@
19ff71d9deccb0e3d5dad71de26fa9a2
2e495e0fbf39de9f25fc5b1d1a47553b

View File

@ -1 +1 @@
d2d7360c1ceb2661c436c52bcde03d689487d25b
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

@ -1 +1 @@
rootProject.name = "hee-gradle-plugins"
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

@ -2,14 +2,6 @@ plugins {
java
}
sourceSets {
configureEach {
java.setSrcDirs(listOf(file("./$name/java")))
resources.setSrcDirs(listOf(file("./$name/resources")))
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))

View File

@ -1,25 +1,18 @@
val kotlinForForgeVersion: String by project
plugins {
id("hee.java")
kotlin("jvm")
}
sourceSets {
configureEach {
main {
java.setSrcDirs(emptyList<File>())
kotlin.setSrcDirs(listOf(file("./$name/kotlin")))
}
}
repositories {
maven(url = "https://thedarkcolour.github.io/KotlinForForge") {
name = "KotlinForForge"
content { includeGroup("thedarkcolour") }
test {
java.setSrcDirs(emptyList<File>())
}
}
dependencies {
implementation(kotlin("stdlib"))
implementation("thedarkcolour:kotlinforforge-neoforge:${kotlinForForgeVersion}")
}

View File

@ -1,12 +1,43 @@
val neoForgeVersion: String by project
plugins {
id("hee.java")
id("net.neoforged.gradle.userdev")
idea
id("hee.kotlin")
id("net.minecraftforge.gradle")
id("org.parchmentmc.librarian.forgegradle")
id("org.spongepowered.mixin")
}
dependencies {
implementation("net.neoforged:neoforge:$neoForgeVersion")
idea {
module {
excludeDirs.add(file("src/main/java"))
excludeDirs.add(file("src/test/java"))
}
}
runs.clear()
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}")
}

Binary file not shown.

View File

@ -1,7 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

35
gradlew vendored
View File

@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# 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/.
@ -80,11 +80,13 @@ do
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
# 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
@ -131,29 +133,22 @@ location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
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
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
@ -198,15 +193,11 @@ if "$cygwin" || "$msys" ; then
done
fi
# 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"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
# 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" \

21
gradlew.bat vendored
View File

@ -26,7 +26,6 @@ if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@ -43,11 +42,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
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
@ -57,11 +56,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
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

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

Some files were not shown because too many files have changed in this diff Show More