mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-07 07:53:32 +00:00
the whole game
This commit is contained in:
39
src/world/level/Region.h
Executable file
39
src/world/level/Region.h
Executable 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__*/
|
||||
Reference in New Issue
Block a user