Called when this Chunk is loaded by the ChunkProvider
()
| 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 |
no test coverage detected