Skip to content

Commit c173044

Browse files
committed
Add javadoc documentation to core interfaces and packages
1 parent 59138c3 commit c173044

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎src/main/java/module-info.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
/// Base module for the [HelloNBT](https://github.com/Glavo/HelloNBT).
1718
module org.glavo.nbt {
1819
requires static org.jetbrains.annotations;
1920
requires static org.lz4.java;

‎src/main/java/org/glavo/nbt/NBTElement.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
import java.io.IOException;
2525

26+
/// Base interface for all NBT elements.
27+
///
28+
/// @see Tag
29+
/// @see ChunkRegion
30+
/// @see Chunk
2631
public sealed interface NBTElement permits ChunkRegion, Chunk, Tag, NBTParent {
2732
/// Returns the parent of this element, or `null` if this element is not a child of any parent.
2833
@Contract(pure = true)

‎src/main/java/org/glavo/nbt/NBTParent.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
import java.util.stream.Stream;
2424

2525
/// Base interface for NBT elements that can contain other NBT elements as children.
26+
///
27+
/// @see ParentTag
28+
/// @see ChunkRegion
29+
/// @see Chunk
2630
public sealed interface NBTParent<E extends NBTElement> extends NBTElement, Iterable<E>
2731
permits ParentTag, ChunkRegion, Chunk {
2832

‎src/main/java/org/glavo/nbt/NBTSelector.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/// @see <a href="https://minecraft.wiki/w/NBT_path">NBT Path - Minecraft Wiki</a>
2323
public final class NBTSelector {
2424

25+
// TODO
2526

2627
/// @throws IllegalArgumentException if the input is not a valid NBT selector
2728
public static NBTSelector parse(String input) {

‎src/main/java/org/glavo/nbt/chunk/package-info.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
/// Base package for NBT chunks.
18+
///
19+
/// @see org.glavo.nbt.chunk.ChunkRegion
20+
/// @see org.glavo.nbt.chunk.Chunk
1721
@NotNullByDefault
1822
package org.glavo.nbt.chunk;
1923

‎src/main/java/org/glavo/nbt/io/package-info.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
/// Base package for input/output operations for NBT elements.
18+
///
19+
/// @see org.glavo.nbt.io.NBTCodec
1720
@NotNullByDefault
1821
package org.glavo.nbt.io;
1922

‎src/main/java/org/glavo/nbt/package-info.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
/// Base package for the [HelloNBT](https://github.com/Glavo/HelloNBT).
18+
///
19+
/// @see org.glavo.nbt.tag
1720
@NotNullByDefault
1821
package org.glavo.nbt;
1922

0 commit comments

Comments
 (0)