mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
18 lines
613 B
Rust
18 lines
613 B
Rust
use std::collections::HashMap;
|
|
|
|
#[derive(Debug, PartialEq)]
|
|
pub enum Tag {
|
|
End, // 0
|
|
Byte(i8), // 1
|
|
Short(i16), // 2
|
|
Int(i32), // 3
|
|
Long(i64), // 4
|
|
Float(f32), // 5
|
|
Double(f64), // 6
|
|
ByteArray(Vec<i8>), // 7
|
|
String(String), // 8
|
|
List(Vec<Tag>), // 9
|
|
Compound(HashMap<String, Tag>), // 10
|
|
IntArray(Vec<i32>), // 11
|
|
LongArray(Vec<i64>), // 12
|
|
}
|