Skip to content

Commit

Permalink
Implementation of Kotlin Wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Outspending committed Jan 15, 2024
1 parent a4f8ca7 commit 6b357fb
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Kotlin.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="SonarLintModuleSettings">
<option name="uniqueId" value="8c2c4858-5d2c-4d5f-9d3b-a2599ecfcc71" />
</component>
</module>
15 changes: 15 additions & 0 deletions Kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
kotlin("jvm") version "1.9.21"
}

repositories {
mavenCentral()
}

dependencies {
compileOnly(rootProject)
}

kotlin {
jvmToolchain(17)
}
12 changes: 12 additions & 0 deletions Kotlin/src/main/kotlin/me/outspending/biomesapi/kotlin/Types.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package me.outspending.biomesapi.kotlin

import me.outspending.biomesapi.BiomeUpdaterImpl
import me.outspending.biomesapi.biome.CustomBiome
import me.outspending.biomesapi.biome.CustomBiomeImpl

/**
* Type aliases for the BiomesAPI Kotlin wrapper.
*/
typealias CustomBiome = CustomBiomeImpl
typealias CustomBiomeBuilder = CustomBiome.Builder
typealias BiomeUpdater = BiomeUpdaterImpl
6 changes: 5 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0"
}
rootProject.name = "BiomesAPI"

include("NMS:Wrapper")
include("NMS:1.19_R2")
include("NMS:1.19_R3")
include("NMS:1.20_R1")
include("NMS:1.20_R2")
include("NMS:1.20_R3")
include("NMS:1.20_R3")
include("Kotlin")

0 comments on commit 6b357fb

Please sign in to comment.