Files
GabsPuNs-Project_Zenith_Main/Minecraft.World/SwampBiome.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

21 lines
654 B
C++

#include "net.minecraft.world.level.h"
#include "net.minecraft.world.level.biome.h"
#include "SwampTreeFeature.h"
SwampBiome::SwampBiome(int id) : Biome(id)
{
decorator->treeCount = 2;
decorator->flowerCount = -999;
decorator->deadBushCount = 1;
decorator->mushroomCount = 8;
decorator->reedsCount = 10;
decorator->clayCount = 1;
decorator->waterlilyCount = 4;
enemies.push_back(new MobSpawnerData(eTYPE_SLIME, 1, 1, 1));
}
Feature *SwampBiome::getTreeFeature(Random *random)
{
return new SwampTreeFeature(); // 4J used to return member swampTree, now returning newly created object so that caller can be consistently resposible for cleanup
}