mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 00:04:11 +00:00
28 lines
484 B
C++
28 lines
484 B
C++
#pragma once
|
|
|
|
#include "BlockSource.h"
|
|
|
|
class Level;
|
|
|
|
class BlockSourceImpl : public BlockSource {
|
|
private:
|
|
Level* world;
|
|
int x;
|
|
int y;
|
|
int z;
|
|
|
|
public:
|
|
BlockSourceImpl(Level* world, int x, int y, int z);
|
|
|
|
Level* getWorld();
|
|
double getX();
|
|
double getY();
|
|
double getZ();
|
|
int getBlockX();
|
|
int getBlockY();
|
|
int getBlockZ();
|
|
Tile* getType();
|
|
int getData();
|
|
Material* getMaterial();
|
|
std::shared_ptr<TileEntity> getEntity();
|
|
}; |