2021-07-23 15:48:51 +00:00
|
|
|
package com.fastasyncworldedit.core.event.extent;
|
2018-08-12 14:03:07 +00:00
|
|
|
|
|
|
|
import com.sk89q.worldedit.event.Cancellable;
|
|
|
|
import com.sk89q.worldedit.event.Event;
|
2019-08-10 06:01:42 +00:00
|
|
|
import com.sk89q.worldedit.extension.platform.Actor;
|
2018-08-12 14:03:07 +00:00
|
|
|
import com.sk89q.worldedit.extent.clipboard.Clipboard;
|
|
|
|
|
|
|
|
import java.net.URI;
|
|
|
|
|
2019-08-10 06:01:42 +00:00
|
|
|
public class ActorSaveClipboardEvent extends Event implements Cancellable {
|
2021-07-24 15:34:05 +00:00
|
|
|
|
2019-08-10 06:01:42 +00:00
|
|
|
private final Actor actor;
|
2018-08-12 14:03:07 +00:00
|
|
|
private final Clipboard clipboard;
|
2020-07-14 02:50:59 +00:00
|
|
|
private final URI source;
|
|
|
|
private final URI destination;
|
2018-08-12 14:03:07 +00:00
|
|
|
private boolean cancelled;
|
|
|
|
|
2019-08-10 06:01:42 +00:00
|
|
|
public ActorSaveClipboardEvent(Actor actor, Clipboard clipboard, URI source, URI destination) {
|
|
|
|
this.actor = actor;
|
2018-08-12 14:03:07 +00:00
|
|
|
this.clipboard = clipboard;
|
|
|
|
this.source = source;
|
|
|
|
this.destination = destination;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isCancelled() {
|
|
|
|
return cancelled;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setCancelled(boolean cancelled) {
|
|
|
|
this.cancelled = cancelled;
|
|
|
|
}
|
|
|
|
|
|
|
|
public URI getSourceURI() {
|
|
|
|
return source;
|
|
|
|
}
|
|
|
|
|
|
|
|
public URI getDestinationURI() {
|
|
|
|
return destination;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Clipboard getClipboard() {
|
|
|
|
return clipboard;
|
|
|
|
}
|
|
|
|
|
2019-08-10 06:01:42 +00:00
|
|
|
public Actor getActor() {
|
|
|
|
return actor;
|
2018-08-12 14:03:07 +00:00
|
|
|
}
|
2021-07-24 15:34:05 +00:00
|
|
|
|
2018-08-12 14:03:07 +00:00
|
|
|
}
|