Skip to content

Commit

Permalink
build: bump 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBuf committed Sep 6, 2021
1 parent 3f57323 commit 52a7a48
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ repositories {
}
dependencies {
implementation "dev.dewy:nbt:1.4.1"
implementation "dev.dewy:nbt:1.5.0"
}
```

#### NBTReader Sample: Base64
#### `Nbt` Sample: Base64

The [Nbt](src/main/java/dev/dewy/nbt/Nbt.java) class can be used to easily (de)serialize NBT data:

Expand All @@ -74,6 +74,17 @@ System.out.println(test.getInt("test").getValue()); // 0

See the [NbtTest](src/test/java/dev/dewy/nbt/test/NbtTest.java) class for full sample usage.


#### SNBT Format

SNBT (Stringified NBT) is a format defined by Mojang used to record NBT tags as readable strings, used in command blocks.

The [JSON NBT sample](samples/sample.json) encoded as SNBT is as follows:

```text
{"primitive":3,"array":[I;0,1,2,3],"list":["duck","goose"],"compound":{}}
```

#### NBT JSON Format

Every tag in NBT JSON is represented as an object containing the following properties:
Expand Down Expand Up @@ -135,11 +146,7 @@ The [JSON NBT sample](samples/sample.json) is documented below:
- Supports all Java edition NBT tags (including long array)
- Intuitive and flexible reading and writing functionality
- JSON (De)serialization

#### Planned

- SNBT (Stringified NBT) support
- ENBT (Extended NBT) format (missing data types e.g., double array) support
- SNBT Serialization

### Javadocs

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group "dev.dewy"
version "1.4.1"
version "1.5.0"

repositories {
mavenCentral()
Expand Down

0 comments on commit 52a7a48

Please sign in to comment.