blob: 860531b86c690d3da82daef160763fcf15d9f568 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# KotlinForForge
Makes Kotlin forge-friendly.
To implement in your project, add the following to your build.gradle:
```groovy
repositories {
maven {
name = 'kotlinforforge'
url = 'https://thedarkcolour.github.io/KotlinForForge/'
}
}
dependencies {
implementation 'thedarkcolour:kotlinforforge:1+'
}
```
Then, add the following to your mods.toml file:
```toml
modLoader="kotlinforforge"
loaderVersion="[1,)"
[[dependencies.YOUR_MODID]]
modId="kotlinforforge"
mandatory=true
versionRange="[1,)"
ordering="NONE"
side="BOTH"
```
Currently, this mod supports object declarations with @Mod and @EventBusSubscriber annotations.
It is recommended that you use
```net.minecraftforge.registries.DeferredRegister```
instead of
```net.minecraftforge.registries.ObjectHolder```
You must use
```thedarkcolour.kotlinforforge.KotlinModLoadingContext```
instead of
```net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext```
|