📜  worldedit api 粘贴原理图 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.883000             🧑  作者: Mango

代码示例1
try (EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1)) {
    Operation operation = new ClipboardHolder(clipboard)
            .createPaste(editSession)
            .to(BlockVector3.at(x, y, z))
            .ignoreAirBlocks(false)
            .build();
    Operations.complete(operation);
}