#include "stdafx.h" #include "AetherBiome.h" #include "AetherBiomeDecorator.h" #include "net.minecraft.world.entity.monster.h" #include "net.minecraft.world.level.tile.h" #include "net.minecraft.world.level.levelgen.feature.h" AetherBiome::AetherBiome(int id) : Biome(id) { // Clear all mob spawning lists enemies.clear(); friendlies.clear(); friendlies_chicken.clear(); friendlies_wolf.clear(); waterFriendlies.clear(); // Aether surface blocks topMaterial = (byte) Tile::aetherGrass_Id; material = (byte) Tile::aetherDirt_Id; // Use custom decorator delete decorator; decorator = new AetherBiomeDecorator(this); } Feature *AetherBiome::getTreeFeature(Random *random) { // 10% chance for golden oak, 90% for skyroot if (random->nextInt(10) == 0) { return new GoldenOakTreeFeature(false); } return new SkyrootTreeFeature(false); } Feature *AetherBiome::getGrassFeature(Random *random) { // Regular tall grass (type 1) — will be colored by biome grass color return new TallGrassFeature(Tile::tallgrass_Id, 1); } int AetherBiome::getSkyColor(float temp) { return 0x9ecbff; } int AetherBiome::getGrassColor() { return 0x8ab69a; } int AetherBiome::getFolageColor() { return 0x8ab69a; }