Skip to content

Commit 7abd7ed

Browse files
authored
Merge pull request #79 from EssentialGG/feature/standalone
Add Standalone version
2 parents 2889efd + 165a619 commit 7abd7ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2743
-188
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
A full Java interop library that wraps Minecraft classes which allows you to write code for multiple versions at the same time. Built using ReplayMod's [Preprocessor](https://github.com/ReplayMod/preprocessor).
44

5+
6+
It also features a "standalone" edition, which can run GUIs without Minecraft so long as they only depend on
7+
UniversalCraft and not Minecraft directly.
8+
This can allow for a faster development loop (no need to wait a minute for Minecraft to start),
9+
automated testing without having to bootstrap a full Minecraft environment,
10+
and even development of completely standalone applications using the same toolkit (e.g. [Elementa]) as one is already
11+
familiar with from Minecraft development.
12+
See the `standalone/example/` folder for a fully functional example.
13+
514
## Dependency
615

716
It's recommended that you include [Essential](link eventually) instead of adding it yourself.
@@ -58,6 +67,13 @@ done
5867
<th>mcPlatform</th>
5968
<th>buildNumber</th>
6069
</tr>
70+
<tr>
71+
<td>standalone</td>
72+
<td>N/A</td>
73+
<td>
74+
<img alt="standalone" src="https://img.shields.io/badge/dynamic/xml?color=A97BFF&label=%20&query=/metadata/versioning/versions/version[not(contains(text(),'%2B'))][last()]&url=https://repo.essential.gg/repository/maven-releases/gg/essential/universalcraft-standalone/maven-metadata.xml">
75+
</td>
76+
</tr>
6177
<tr><td>1.21</td><td>fabric</td><td><img alt="1.21-fabric" src="https://img.shields.io/badge/dynamic/xml?color=A97BFF&label=%20&query=/metadata/versioning/versions/version[not(contains(text(),'%2B'))][last()]&url=https://repo.essential.gg/repository/maven-releases/gg/essential/universalcraft-1.21-fabric/maven-metadata.xml"></td></tr>
6278
<tr><td>1.20.6</td><td>fabric</td><td><img alt="1.20.6-fabric" src="https://img.shields.io/badge/dynamic/xml?color=A97BFF&label=%20&query=/metadata/versioning/versions/version[not(contains(text(),'%2B'))][last()]&url=https://repo.essential.gg/repository/maven-releases/gg/essential/universalcraft-1.20.6-fabric/maven-metadata.xml"></td></tr>
6379
<tr><td>1.20.4</td><td>forge</td><td><img alt="1.20.4-forge" src="https://img.shields.io/badge/dynamic/xml?color=A97BFF&label=%20&query=/metadata/versioning/versions/version[not(contains(text(),'%2B'))][last()]&url=https://repo.essential.gg/repository/maven-releases/gg/essential/universalcraft-1.20.4-forge/maven-metadata.xml"></td></tr>
@@ -154,4 +170,6 @@ tasks.shadowJar {
154170
tasks.reobfJar { dependsOn(tasks.shadowJar) }
155171
```
156172

157-
</details>
173+
</details>
174+
175+
[Elementa]: https://github.com/EssentialGG/Elementa

build.gradle.kts

+5
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ tasks.withType<KotlinCompile> {
2424
apiVersion = "1.6"
2525
}
2626
}
27+
28+
preprocess {
29+
vars.put("STANDALONE", 0)
30+
vars.put("!STANDALONE", 1)
31+
}

root.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,7 @@ preprocess {
6262
forge11602.link(forge11202, file("versions/1.16.2-1.12.2.txt"))
6363
forge11202.link(forge10809)
6464
}
65+
66+
apiValidation {
67+
ignoredProjects += listOf("standalone", "example")
68+
}

settings.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ pluginManagement {
1717
rootProject.name = "UniversalCraft"
1818
rootProject.buildFileName = "root.gradle.kts"
1919

20+
include(":standalone")
21+
include(":standalone:example")
22+
2023
listOf(
2124
"1.8.9-forge",
2225
"1.12.2-forge",

0 commit comments

Comments
 (0)