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

Method ComposeColumn

src/Generating/DistortedHeightmap.cpp:656–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654
655
656void cDistortedHeightmap::ComposeColumn(cChunkDesc & a_ChunkDesc, int a_RelX, int a_RelZ)
657{
658 // Frequencies for the podzol floor selecting noise:
659 const NOISE_DATATYPE FrequencyX = 8;
660 const NOISE_DATATYPE FrequencyZ = 8;
661
662 EMCSBiome Biome = a_ChunkDesc.GetBiome(a_RelX, a_RelZ);
663 switch (Biome)
664 {
665 case biOcean:
666 case biPlains:
667 case biForest:
668 case biTaiga:
669 case biSwampland:
670 case biRiver:
671 case biFrozenOcean:
672 case biFrozenRiver:
673 case biIcePlains:
674 case biIceMountains:
675 case biForestHills:
676 case biTaigaHills:
677 case biExtremeHillsEdge:
678 case biJungle:
679 case biJungleHills:
680 case biJungleEdge:
681 case biDeepOcean:
682 case biStoneBeach:
683 case biColdBeach:
684 case biBirchForest:
685 case biBirchForestHills:
686 case biRoofedForest:
687 case biColdTaiga:
688 case biColdTaigaHills:
689 case biSavanna:
690 case biSavannaPlateau:
691 case biSunflowerPlains:
692 case biFlowerForest:
693 case biTaigaM:
694 case biSwamplandM:
695 case biIcePlainsSpikes:
696 case biJungleM:
697 case biJungleEdgeM:
698 case biBirchForestM:
699 case biBirchForestHillsM:
700 case biRoofedForestM:
701 case biColdTaigaM:
702 case biSavannaM:
703 case biSavannaPlateauM:
704 {
705 FillColumnPattern(a_ChunkDesc, a_RelX, a_RelZ, patGrass.Get());
706 return;
707 }
708
709 case biMegaTaiga:
710 case biMegaTaigaHills:
711 case biMegaSpruceTaiga:
712 case biMegaSpruceTaigaHills:
713 {

Callers

nothing calls this directly

Calls 3

CubicNoise2DMethod · 0.80
GetBiomeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected