3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-19 09:20:08 +01:00

chore: since comment for reader + writer

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2024-06-23 18:11:22 +02:00
Ursprung 510dee4a49
Commit ccad4388cd
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37E613079F3E5BB9
2 geänderte Dateien mit 7 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -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 {

Datei anzeigen

@ -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))
);