MCPcopy Create free account
hub / github.com/cuberite/cuberite / SetAreaBiome

Method SetAreaBiome

src/Chunk.cpp:1664–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662
1663
1664void cChunk::SetAreaBiome(int a_MinRelX, int a_MaxRelX, int a_MinRelZ, int a_MaxRelZ, EMCSBiome a_Biome)
1665{
1666 for (int z = a_MinRelZ; z <= a_MaxRelZ; z++)
1667 {
1668 for (int x = a_MinRelX; x <= a_MaxRelX; x++)
1669 {
1670 cChunkDef::SetBiome(m_BiomeMap, x, z, a_Biome);
1671 }
1672 }
1673 MarkDirty();
1674
1675 // Re-send the chunk to all clients:
1676 for (cClientHandleList::iterator itr = m_LoadedByClient.begin(); itr != m_LoadedByClient.end(); ++itr)
1677 {
1678 m_World->ForceSendChunkTo(m_PosX, m_PosZ, (*itr));
1679 } // for itr - m_LoadedByClient[]
1680}
1681
1682
1683

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
ForceSendChunkToMethod · 0.80

Tested by

no test coverage detected