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:
Ursprung
510dee4a49
Commit
ccad4388cd
@ -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 {
|
||||
|
@ -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))
|
||||
);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren