Package org.terasology.world.chunks.event

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


    public void completeUpdate() {
        Chunk chunk = lightMerger.completeMerge();
        if (chunk != null) {
            chunk.markReady();
            listener.onChunkReady(chunk.getPosition());
            worldEntity.send(new OnChunkLoaded(chunk.getPosition()));
        }
    }
View Full Code Here


                PerformanceMonitor.endActivity();

                if (!readyChunkInfo.isNewChunk()) {
                    worldEntity.send(new OnChunkGenerated(readyChunkInfo.getPos()));
                }
                worldEntity.send(new OnChunkLoaded(readyChunkInfo.getPos()));
                for (ChunkRelevanceRegion region : regions.values()) {
                    region.chunkReady(chunk);
                }
            } finally {
                chunk.unlock();
View Full Code Here

TOP

Related Classes of org.terasology.world.chunks.event.OnChunkLoaded

Copyright © 2018 www.massapicom. 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.