feat: blockstates

actually this time but might need to make a couple of fixes
This commit is contained in:
Fireblade
2026-05-04 21:26:13 -04:00
parent 0ee913e6e2
commit b750c4bbf4
28 changed files with 564 additions and 12 deletions
+3
View File
@@ -5,6 +5,8 @@ class FenceGateTile : public DirectionalTile
{
private:
static const int OPEN_BIT = 4;
static const int POWERED_BIT = 8;
static const int IN_WALL_BIT = 16;
Icon* icon;
public:
FenceGateTile(int id);
@@ -13,6 +15,7 @@ public:
virtual int convertBlockStateToLegacyData(BlockState *state) override;
virtual Tile::BlockState getBlockState(LevelSource *level, int x, int y, int z) override;
virtual Tile::BlockState getBlockState(int data);
void fillVirtualBlockStateProperties(Tile::BlockState *state, LevelSource *level, const BlockPos &pos);
Icon *getTexture(int face, int data);
virtual bool mayPlace(Level *level, int x, int y, int z);
virtual AABB *getAABB(Level *level, int x, int y, int z);