Examples of onChunkLoad()


Examples of net.minecraft.world.chunk.Chunk.onChunkLoad()

                    loadedMap.remove(pos);
                    mcChunk = chunkProvider.provideChunk(coord.getBlockX(), coord.getBlockZ());
                    loadedMap.add(pos, mcChunk);
                    loaded.add(mcChunk);
                    if (mcChunk != null) {
                        mcChunk.onChunkLoad();
                        mcChunk.populateChunk(chunkProvider, chunkProvider, coord.getBlockX(), coord.getBlockZ());
                    }
                }
            } catch (Throwable t) {
                logger.log(Level.WARNING, "Failed to generate chunk", t);
View Full Code Here

Examples of net.minecraft.world.chunk.Chunk.onChunkLoad()

        loadingChunks.remove(key);
      }
    }

    loadedChunks.add(chunk);
    chunk.onChunkLoad();
    fireBukkitLoadEvent(chunk, wasGenerated);
    chunkLoadLocks.remove(key);
    tryPopulateChunks(chunk);

    return chunk;
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.