Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
zml2008 committed Apr 5, 2025
commit 74b80c2016756e730dccc469e37504ee9feadb76
2 changes: 2 additions & 0 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ dependencies {
sequenceOf(
"api",
"annotation-processors",
"dfu",
"extra-kotlin",
"key",
"nbt",
"nbt-dfu",
"serializer-configurate4",
"text-logger-slf4j",
"text-minimessage",
Expand Down
13 changes: 13 additions & 0 deletions dfu/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("adventure.common-conventions")
}

dependencies {
api(libs.dfu8)
}

indra {
javaVersions().target(17) // minimum supported by DFU
}

applyJarMetadata("net.kyori.adventure.dfu")
6 changes: 6 additions & 0 deletions dfu/src/main/java/net/kyori/adventure/dfu/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* DFU Codecs for adventure types and a ComponentSerializer backed by those codecs.
*
* @since 4.21.0
*/
package net.kyori.adventure.dfu;
4 changes: 4 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ guava = { module = "com.google.guava:guava", version.ref = "guava" }
guava-testlib = { module = "com.google.guava:guava-testlib", version.ref = "guava" }
jetbrainsAnnotations = "org.jetbrains:annotations:26.0.2"

# dfu

dfu8 = { module = "com.mojang:datafixerupper", version = "8.0.16" }

# extra-kotlin
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8" }
kotlin-testJunit5 = { module = "org.jetbrains.kotlin:kotlin-test-junit5" }
Expand Down
17 changes: 17 additions & 0 deletions nbt-dfu/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("adventure.common-conventions")
}

dependencies {
api(libs.dfu8)
api(projects.adventureNbt)

testImplementation(projects.adventureDfu)
testImplementation(projects.adventureKey)
}

indra {
javaVersions().target(17) // minimum supported by DFU
}

applyJarMetadata("net.kyori.adventure.nbt.dfu")
Loading