Skip to content

Commit a4b7746

Browse files
committed
feat(dfu, nbt-dfu): init
These new modules are intended to allow better integration with the DFU library that drives a growing amount of serialization in modern Minecraft.
1 parent 6443201 commit a4b7746

File tree

12 files changed

+801
-0
lines changed

12 files changed

+801
-0
lines changed

bom/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ dependencies {
1414
sequenceOf(
1515
"api",
1616
"annotation-processors",
17+
"dfu",
1718
"extra-kotlin",
1819
"key",
1920
"nbt",
21+
"nbt-dfu",
2022
"serializer-configurate4",
2123
"text-logger-slf4j",
2224
"text-minimessage",

dfu/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
plugins {
2+
id("adventure.common-conventions")
3+
}
4+
5+
dependencies {
6+
api(libs.dfu8)
7+
}
8+
9+
indra {
10+
javaVersions().target(17) // minimum supported by DFU
11+
}
12+
13+
applyJarMetadata("net.kyori.adventure.dfu")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
* DFU Codecs for adventure types and a ComponentSerializer backed by those codecs.
3+
*
4+
* @since 4.21.0
5+
*/
6+
package net.kyori.adventure.dfu;

gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ guava = { module = "com.google.guava:guava", version.ref = "guava" }
2525
guava-testlib = { module = "com.google.guava:guava-testlib", version.ref = "guava" }
2626
jetbrainsAnnotations = "org.jetbrains:annotations:26.0.2"
2727

28+
# dfu
29+
30+
dfu8 = { module = "com.mojang:datafixerupper", version = "8.0.16" }
31+
2832
# extra-kotlin
2933
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8" }
3034
kotlin-testJunit5 = { module = "org.jetbrains.kotlin:kotlin-test-junit5" }

nbt-dfu/build.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
id("adventure.common-conventions")
3+
}
4+
5+
dependencies {
6+
api(libs.dfu8)
7+
api(projects.adventureNbt)
8+
9+
testImplementation(projects.adventureDfu)
10+
testImplementation(projects.adventureKey)
11+
}
12+
13+
indra {
14+
javaVersions().target(17) // minimum supported by DFU
15+
}
16+
17+
applyJarMetadata("net.kyori.adventure.nbt.dfu")

0 commit comments

Comments
 (0)