Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Ursprung
fcbbc72a19
Commit
5207981fb2
@ -49,9 +49,6 @@ public abstract class LinearClipboard extends SimpleClipboard {
|
|||||||
|
|
||||||
public abstract Collection<CompoundTag> getTileEntities();
|
public abstract Collection<CompoundTag> getTileEntities();
|
||||||
|
|
||||||
public void flush() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void finalize() {
|
protected void finalize() {
|
||||||
close();
|
close();
|
||||||
|
@ -323,6 +323,11 @@ public class BlockArrayClipboard implements Clipboard {
|
|||||||
this.parent.close();
|
this.parent.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void flush() {
|
||||||
|
this.parent.flush();
|
||||||
|
}
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,6 +52,7 @@ import javax.annotation.Nullable;
|
|||||||
import java.io.Closeable;
|
import java.io.Closeable;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
|
import java.io.Flushable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
@ -63,7 +64,9 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
|||||||
/**
|
/**
|
||||||
* Specifies an object that implements something suitable as a "clipboard."
|
* Specifies an object that implements something suitable as a "clipboard."
|
||||||
*/
|
*/
|
||||||
public interface Clipboard extends Extent, Iterable<BlockVector3>, Closeable {
|
//FAWE start - Iterable, closeable and flushable
|
||||||
|
public interface Clipboard extends Extent, Iterable<BlockVector3>, Closeable, Flushable {
|
||||||
|
//FAWE end
|
||||||
|
|
||||||
//FAWE start
|
//FAWE start
|
||||||
static Clipboard create(Region region) {
|
static Clipboard create(Region region) {
|
||||||
@ -187,6 +190,10 @@ public interface Clipboard extends Extent, Iterable<BlockVector3>, Closeable {
|
|||||||
default void close() {
|
default void close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
default void flush() {
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Forwards to {@link #paste(World, BlockVector3, boolean, boolean, Transform)}.
|
* Forwards to {@link #paste(World, BlockVector3, boolean, boolean, Transform)}.
|
||||||
*/
|
*/
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren