aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/SkyblockId.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-25 16:15:20 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-25 16:15:20 +0100
commitddebaf47900dfab41590c97c202984142ae5b9f6 (patch)
tree498859e320b19d3bc7559f5585174afb78e132b4 /src/main/kotlin/util/SkyblockId.kt
parente16c60169bf192b79991176b5f9cee66b5b16e7d (diff)
downloadFirmament-ddebaf47900dfab41590c97c202984142ae5b9f6.tar.gz
Firmament-ddebaf47900dfab41590c97c202984142ae5b9f6.tar.bz2
Firmament-ddebaf47900dfab41590c97c202984142ae5b9f6.zip
WIP: Reforge Recipes
Diffstat (limited to 'src/main/kotlin/util/SkyblockId.kt')
-rw-r--r--src/main/kotlin/util/SkyblockId.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/util/SkyblockId.kt b/src/main/kotlin/util/SkyblockId.kt
index 497a2d2..631b444 100644
--- a/src/main/kotlin/util/SkyblockId.kt
+++ b/src/main/kotlin/util/SkyblockId.kt
@@ -106,7 +106,10 @@ data class HypixelPetInfo(
private val jsonparser = Json { ignoreUnknownKeys = true }
-val ItemStack.extraAttributes: NbtCompound
+var ItemStack.extraAttributes: NbtCompound
+ set(value) {
+ set(DataComponentTypes.CUSTOM_DATA, NbtComponent.of(value))
+ }
get() {
val customData = get(DataComponentTypes.CUSTOM_DATA) ?: run {
val component = NbtComponent.of(NbtCompound())