From ccad4388cd5b2f0028d2394ad358bf4501d027bd Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Sun, 23 Jun 2024 18:11:22 +0200 Subject: [PATCH] chore: since comment for reader + writer --- .../clipboard/io/FastSchematicReaderV3.java | 1 + .../clipboard/io/FastSchematicWriterV3.java | 15 ++++++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java index 634603277..a11e66bae 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicReaderV3.java @@ -62,6 +62,7 @@ import java.util.zip.GZIPInputStream; * ClipboardReader for the Sponge Schematic Format v3. * Not necessarily much faster than {@link com.sk89q.worldedit.extent.clipboard.io.sponge.SpongeSchematicV3Reader}, but uses a * stream based approach to keep the memory overhead minimal (especially in larger schematics) + * @since TODO */ @SuppressWarnings("removal") // JNBT public class FastSchematicReaderV3 implements ClipboardReader { diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicWriterV3.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicWriterV3.java index ad2a020fc..49d1800de 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicWriterV3.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/clipboard/io/FastSchematicWriterV3.java @@ -32,6 +32,12 @@ import java.util.List; import java.util.Objects; import java.util.function.Function; +/** + * Faster, stream-based implementation of {@link com.sk89q.worldedit.extent.clipboard.io.sponge.SpongeSchematicV3Writer} for + * writing schematics conforming the sponge schematic v3 format. + * + * @since TODO + */ @SuppressWarnings("removal") // Yes, JNBT is deprecated - we know public class FastSchematicWriterV3 implements ClipboardWriter { @@ -61,15 +67,6 @@ public class FastSchematicWriterV3 implements ClipboardWriter { throw new IllegalArgumentException("Region length too large for schematic: " + region.getWidth()); } - /* - * { - * "": { - * "Schematic": { - * //... - * } - * } - * } - */ this.outputStream.writeLazyCompoundTag( "", root -> root.writeLazyCompoundTag("Schematic", out -> this.write2(out, clipboard)) );