summaryrefslogtreecommitdiffstats
path: root/Block.hpp
blob: 0272e1f0eaa6d25fede021affad3daa0d67a8988 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include "PositionI.hpp"

class Block {
public:
    Block(int id = 0, unsigned char state = 0, unsigned char light = 15, PositionI position = PositionI());

    Block(unsigned short idAndState, unsigned char light);

    ~Block();

    int GetId();

    int GetState();

    int GetLight();

private:
    int m_id;
    unsigned char m_light;
    PositionI m_position;
    unsigned char m_state;
    //NbtTree* nbt;
};