the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 21 lines 480 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.biome.h" 3#include "net.minecraft.world.level.newbiome.layer.h" 4 5DownfallLayer::DownfallLayer(shared_ptr<Layer>parent) : Layer(0) 6{ 7 this->parent = parent; 8} 9 10intArray DownfallLayer::getArea(int xo, int yo, int w, int h) 11{ 12 intArray b = parent->getArea(xo, yo, w, h); 13 14 intArray result = IntCache::allocate(w * h); 15 for (int i = 0; i < w * h; i++) 16 { 17 result[i] = Biome::biomes[b[i]]->getDownfallInt(); 18 } 19 20 return result; 21}