Examples of flushChanges()


Examples of com.sk89q.craftbook.blockbag.NearbyChestBlockBag.flushChanges()

                    } catch (BlockBagException e) {
                        // Ran out of space
                    }
                }

                blockBag.flushChanges();
            }
        }
    }

    /**
 
View Full Code Here

Examples of com.sk89q.worldedit.extent.inventory.BlockBag.flushChanges()

     */
    public void flushBlockBag(Actor actor, EditSession editSession) {
        BlockBag blockBag = editSession.getBlockBag();

        if (blockBag != null) {
            blockBag.flushChanges();
        }

        Map<Integer, Integer> missingBlocks = editSession.popMissingBlocks();

        if (!missingBlocks.isEmpty()) {
View Full Code Here

Examples of com.sk89q.worldedit.extent.inventory.BlockBag.flushChanges()

            brush.build(editSession, target, material, size);
        } catch (MaxChangedBlocksException e) {
            player.printError("Max blocks change limit reached.");
        } finally {
            if (bag != null) {
                bag.flushChanges();
            }
            session.remember(editSession);
        }

        return true;
View Full Code Here

Examples of com.sk89q.worldedit.extent.inventory.BlockBag.flushChanges()

        try {
            editSession.setBlock(clicked.toVector(), targetBlock);
        } catch (MaxChangedBlocksException ignored) {
        } finally {
            if (bag != null) {
                bag.flushChanges();
            }
            session.remember(editSession);
        }

        return true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.