Package org.terasology.world.chunks

Examples of org.terasology.world.chunks.Chunk.lock()


    @Override
    public void completeUpdate() {
        ReadyChunkInfo readyChunkInfo = lightMerger.completeMerge();
        if (readyChunkInfo != null) {
            Chunk chunk = readyChunkInfo.getChunk();
            chunk.lock();
            try {
                chunk.markReady();
                if (!readyChunkInfo.isNewChunk()) {
                    PerformanceMonitor.startActivity("Generating Block Entities");
                    generateBlockEntities(chunk);
View Full Code Here


                // Note: Above won't matter if all changes are on the main thread
                Chunk chunk = nearCache.get(pos);
                if (chunk.isLocked()) {
                    continue;
                }
                chunk.lock();
                try {
                    if (!chunk.isReady()) {
                        // Chunk hasn't been finished or changed, so just drop it.
                        iterator.remove();
                        Iterator<ReadyChunkInfo> infoIterator = sortedReadyChunks.iterator();
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.