====== OnChunkAvailable hook callback function ======
This function is called after a chunk is either generated or loaded from the disk. The chunk is already available for manipulation using the API. This is a notification-only callback, there is no behavior that plugins could override.

===== Function signature =====
<code lua>
function OnChunkAvailable(World, ChunkX, ChunkZ)
</code>
Parameters:
| World | [[API::cWorld|cWorld]] | The world into which the chunk belongs |
| ChunkX | number | X-coord of the chunk |
| ChunkZ | number | Z-coord of the chunk |

===== Return values =====
If the function returns false or no value, the next plugin's callback is called. If the function returns true, no other callback is called for this event.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_CHUNK_AVAILABLE]]
<code lua>
cPluginManager:Get():AddHook(Plugin, cPluginManager.HOOK_CHUNK_AVAILABLE);
</code>