Skip to content

Commit

Permalink
feat(configured-features): Add end_platform with no config and with…
Browse files Browse the repository at this point in the history
… tests.
  • Loading branch information
Ayfri committed Sep 15, 2024
1 parent 1a4b4d9 commit f9b8a2e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package io.github.ayfri.kore.features.worldgen.configuredfeature.configurations

import kotlinx.serialization.Serializable

@Serializable
data object EndPlatform : FeatureConfig()
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,14 @@ fun DataPack.configuredFeatureTests() {
}
}
""".trimIndent()


configuredFeature("end_platform", EndPlatform)

configuredFeatures.last() assertsIs """
{
"type": "minecraft:end_platform",
"config": {}
}
""".trimIndent()
}

0 comments on commit f9b8a2e

Please sign in to comment.