From 646f77ec6bc27af231b6ff8974e631b86188beb6 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 19 May 2019 23:03:48 +0500 Subject: Implemented block-api --- src/Block.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/Block.hpp') diff --git a/src/Block.hpp b/src/Block.hpp index fa8b51a..d8a78a8 100644 --- a/src/Block.hpp +++ b/src/Block.hpp @@ -3,6 +3,8 @@ #include #include +#include "Vector.hpp" + struct BlockId { unsigned short id : 13; unsigned char state : 4; @@ -40,4 +42,14 @@ namespace std { } //returns name of blockstate and name of variant -std::pair TransformBlockIdToBlockStateName(BlockId blockId); \ No newline at end of file +std::pair TransformBlockIdToBlockStateName(BlockId blockId); + +struct BlockInfo { + bool collides; + std::string blockstate; + std::string variant; +}; + +void RegisterStaticBlockInfo(BlockId blockId, BlockInfo blockInfo); + +BlockInfo GetBlockInfo(BlockId blockId, Vector blockPos = Vector(0,0,0)); \ No newline at end of file -- cgit v1.2.3