summaryrefslogtreecommitdiffstats
path: root/Block.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Block.hpp')
-rw-r--r--Block.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Block.hpp b/Block.hpp
new file mode 100644
index 0000000..0272e1f
--- /dev/null
+++ b/Block.hpp
@@ -0,0 +1,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;
+};
+