the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 42 lines 1.1 kB view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.h" 3#include "net.minecraft.world.level.biome.h" 4#include "SwampTreeFeature.h" 5 6SwampBiome::SwampBiome(int id) : Biome(id) 7{ 8 decorator->treeCount = 2; 9 decorator->flowerCount = -999; 10 decorator->deadBushCount = 1; 11 decorator->mushroomCount = 8; 12 decorator->reedsCount = 10; 13 decorator->clayCount = 1; 14 decorator->waterlilyCount = 4; 15 16 // waterColor = 0xe0ffae; 17 18 enemies.push_back(new MobSpawnerData(eTYPE_SLIME, 1, 1, 1)); 19} 20 21 22Feature *SwampBiome::getTreeFeature(Random *random) 23{ 24 return new SwampTreeFeature(); // 4J used to return member swampTree, now returning newly created object so that caller can be consistently resposible for cleanup 25} 26 27// 4J Stu - Not using these any more 28//int SwampBiome::getGrassColor() 29//{ 30// double temp = getTemperature(); 31// double rain = getDownfall(); 32// 33// return ((GrassColor::get(temp, rain) & 0xfefefe) + 0x4e0e4e) / 2; 34//} 35// 36//int SwampBiome::getFolageColor() 37//{ 38// double temp = getTemperature(); 39// double rain = getDownfall(); 40// 41// return ((FoliageColor::get(temp, rain) & 0xfefefe) + 0x4e0e4e) / 2; 42//}