Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWoodworth committed Jul 14, 2022
1 parent 81500ca commit eaa99d7
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,21 @@ Technical information about NBT can be found [here](https://wiki.vg/NBT).
```kotlin
import net.benwoodworth.knbt.*

// variant and compression are required
val nbt = Nbt {
variant = NbtVariant.Java // Java, Bedrock, BedrockNetwork
compression = NbtCompression.None // None, Gzip, Zlib
compressionLevel = null // in 0..9
encodeDefaults = false
ignoreUnknownKeys = false
serializersModule = EmptySerializersModule
variant = NbtVariant. // Java, Bedrock, BedrockNetwork
compression = NbtCompression. // None, Gzip, Zlib
//compressionLevel = null // in 0..9
//encodeDefaults = false
//ignoreUnknownKeys = false
//serializersModule = EmptySerializersModule
}

val snbt = StringifiedNbt {
prettyPrint = false
prettyPrintIndent = " "
encodeDefaults = false
ignoreUnknownKeys = false
serializersModule = EmptySerializersModule
//prettyPrint = false
//prettyPrintIndent = " "
//encodeDefaults = false
//ignoreUnknownKeys = false
//serializersModule = EmptySerializersModule
}
```

Expand Down

0 comments on commit eaa99d7

Please sign in to comment.