use of com.fastasyncworldedit.core.event.extent.PasteEvent in project FastAsyncWorldEdit by IntellectualSites.
the class ClipboardCommands method checkPaste.
// FAWE start
private void checkPaste(Actor player, EditSession editSession, BlockVector3 to, ClipboardHolder holder, Clipboard clipboard) {
URI uri = null;
if (holder instanceof URIClipboardHolder) {
uri = ((URIClipboardHolder) holder).getURI(clipboard);
}
PasteEvent event = new PasteEvent(player, clipboard, uri, editSession, to);
WorldEdit.getInstance().getEventBus().post(event);
if (event.isCancelled()) {
throw FaweCache.MANUAL;
}
}
Aggregations