feat: blockstates

still a work in progress
This commit is contained in:
Fireblade
2026-05-02 15:14:48 -04:00
parent fc35ef155b
commit d89fadff68
80 changed files with 2249 additions and 2 deletions
+26
View File
@@ -15,6 +15,32 @@ NetherWartTile::NetherWartTile(int id) : Bush(id)
updateDefaultShape();
}
void NetherWartTile::createBlockStateDefinition()
{
if (!m_blockStateDefinition)
m_blockStateDefinition = new BlockStateDefinition(this);
}
int NetherWartTile::defaultBlockState()
{
return 0;
}
int NetherWartTile::convertBlockStateToLegacyData(BlockState *state)
{
return state ? (state->value & 0x3) : 0;
}
Tile::BlockState NetherWartTile::getBlockState(int data)
{
return Tile::BlockState(data & 0x3);
}
Tile::BlockState NetherWartTile::getBlockState(LevelSource *level, int x, int y, int z)
{
return Tile::BlockState(level->getData(x, y, z) & 0x3);
}
// 4J Added override
void NetherWartTile::updateDefaultShape()
{