Skip to content

Commit ab1a1ca

Browse files
committed
Expand Tag documentation with parent/child constraints
1 parent 6e5dede commit ab1a1ca

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/main/java/org/glavo/nbt/tag/Tag.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
///
3333
/// The payload of a tag can be a primitive value, an array of primitive values, or a collection of other tags.
3434
///
35+
/// Each tag may have a [parent][#getParent()], which can be a [parent tag][ParentTag] or a [chunk][org.glavo.nbt.chunk.Chunk].
36+
/// Tags form a tree structure, where each tag has a unique position in the tree:
37+
/// It can have at most one parent and cannot belong to multiple parents simultaneously;
38+
/// and it cannot be multiple children of the same parent at the same time.
39+
///
3540
/// These are the all possible types of tags:
3641
///
3742
/// - [ValueTag]: A tag that holds a value.

0 commit comments

Comments
 (0)