the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

39
src/world/level/Region.h Executable file
View File

@@ -0,0 +1,39 @@
#ifndef NET_MINECRAFT_WORLD_LEVEL__Region_H__
#define NET_MINECRAFT_WORLD_LEVEL__Region_H__
//package net.minecraft.world.level;
#include "LevelSource.h"
class Level;
class Material;
class LevelChunk;
class Region: public LevelSource
{
public:
Region(Level* level, int x1, int y1, int z1, int x2, int y2, int z2);
~Region();
bool isSolidRenderTile(int x, int y, int z);
bool isSolidBlockingTile(int x, int y, int z);
int getTile(int x, int y, int z);
bool isEmptyTile(int x, int y, int z);
float getBrightness(int x, int y, int z);
int getRawBrightness(int x, int y, int z);
int getRawBrightness(int x, int y, int z, bool propagate);
int getData(int x, int y, int z);
const Material* getMaterial(int x, int y, int z);
Biome* getBiome(int x, int z);
private:
int xc1, zc1;
LevelChunk*** chunks;
Level* level;
int size_x;
int size_z;
};
#endif /*NET_MINECRAFT_WORLD_LEVEL__Region_H__*/