MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / onChunkLoad

Method onChunkLoad

src/main/java/net/minecraft/world/chunk/Chunk.java:986–1000  ·  view source on GitHub ↗

Called when this Chunk is loaded by the ChunkProvider

()

Source from the content-addressed store, hash-verified

984 * Called when this Chunk is loaded by the ChunkProvider
985 */
986 public void onChunkLoad()
987 {
988 this.isChunkLoaded = true;
989 this.worldObj.addTileEntities(this.chunkTileEntityMap.values());
990
991 for (int i = 0; i < this.entityLists.length; ++i)
992 {
993 for (Entity entity : this.entityLists[i])
994 {
995 entity.onChunkLoad();
996 }
997
998 this.worldObj.loadEntities(this.entityLists[i]);
999 }
1000 }
1001
1002 /**
1003 * Called when this Chunk is unloaded by the ChunkProvider

Callers 1

loadChunkMethod · 0.95

Calls 3

addTileEntitiesMethod · 0.80
valuesMethod · 0.80
loadEntitiesMethod · 0.80

Tested by

no test coverage detected