4jcraft/targets/minecraft/world/level/levelgen/LargeFeature.h

32 lines
659 B
C++

#pragma once
#include <stdint.h>
#include <format>
#include <string>
#include "minecraft/world/level/chunk/ChunkSource.h"
class Level;
class ChunkSource;
class Random;
class LargeFeature {
public:
static const std::string STRONGHOLD;
protected:
int radius;
Random* random;
Level* level;
public:
LargeFeature();
virtual ~LargeFeature();
virtual void apply(ChunkSource* ChunkSource, Level* level, int xOffs,
int zOffs, std::vector<uint8_t>& blocks);
protected:
virtual void addFeature(Level* level, int x, int z, int xOffs, int zOffs,
std::vector<uint8_t>& blocks) {}
};