Package org.terasology.world.chunks

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


                sortedReadyChunks.addAll(newReadyChunks);
                Collections.sort(sortedReadyChunks, new ReadyChunkRelevanceComparator());
                for (Chunk chunk : newReadyChunks) {
                    Chunk oldChunk = chunkCache.put(chunk.getPosition(), chunk);
                    if (oldChunk != null) {
                        oldChunk.dispose();
                    }
                }
            }
            if (!sortedReadyChunks.isEmpty()) {
                int loaded = 0;
View Full Code Here


                    worldEntity.send(new BeforeChunkUnload(pos));
                    for (ChunkRelevanceRegion region : regions.values()) {
                        region.chunkUnloaded(pos);
                    }
                    storageManager.deactivateChunk(chunk);
                    chunk.dispose();

                    try {
                        unloadRequestTaskMaster.put(new ChunkUnloadRequest(chunk, this));
                    } catch (InterruptedException e) {
                        logger.error("Failed to enqueue unload request for {}", chunk.getPosition(), e);
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.