Horje
worldedit api paste schematic Code Example
worldedit api paste schematic
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);
}
worldedit api copy schematic
CuboidRegion region = new CuboidRegion(world, min, max);
BlockArrayClipboard clipboard = new BlockArrayClipboard(region);

EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(region.getWorld(), -1);

ForwardExtentCopy forwardExtentCopy = new ForwardExtentCopy(editSession, region, clipboard, region.getMinimumPoint());
forwardExtentCopy.setCopyingEntities(true);
Operations.complete(forwardExtentCopy);




Java

Related
tree height recursion Code Example tree height recursion Code Example
functionality of consumer functional interface in java Code Example functionality of consumer functional interface in java Code Example
maven show runtime classpath Code Example maven show runtime classpath Code Example
android studio char to string Code Example android studio char to string Code Example
receive an int from terminal java Code Example receive an int from terminal java Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9