Examples of BeforeChunkUnload


Examples of org.terasology.world.chunks.event.BeforeChunkUnload

                                break;
                            }
                        }
                        continue;
                    }
                    worldEntity.send(new BeforeChunkUnload(pos));
                    for (ChunkRelevanceRegion region : regions.values()) {
                        region.chunkUnloaded(pos);
                    }
                    storageManager.deactivateChunk(chunk);
                    chunk.dispose();
View Full Code Here

Examples of org.terasology.world.chunks.event.BeforeChunkUnload

        unloadRequestTaskMaster.shutdown(new ChunkUnloadRequest(), true);
        lightMerger.shutdown();

        for (Chunk chunk : nearCache.values()) {
            if (chunk.isReady()) {
                worldEntity.send(new BeforeChunkUnload(chunk.getPosition()));
                storageManager.deactivateChunk(chunk);
                chunk.dispose();
            }
        }
        nearCache.clear();
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.