Added hanging roots

This commit is contained in:
Dylan K. Taylor
2022-07-14 16:47:55 +01:00
parent 323d31005f
commit d321094081
6 changed files with 66 additions and 1 deletions

View File

@ -872,6 +872,7 @@ final class BlockObjectToBlockStateSerializer implements BlockStateSerializer{
$this->mapSimple(Blocks::GRASS_PATH(), Ids::GRASS_PATH);
$this->mapSimple(Blocks::GRAVEL(), Ids::GRAVEL);
$this->map(Blocks::GREEN_TORCH(), fn(Torch $block) => Helper::encodeColoredTorch($block, true, Writer::create(Ids::COLORED_TORCH_RG)));
$this->mapSimple(Blocks::HANGING_ROOTS(), Ids::HANGING_ROOTS);
$this->mapSimple(Blocks::HARDENED_CLAY(), Ids::HARDENED_CLAY);
$this->mapSimple(Blocks::HARDENED_GLASS(), Ids::HARD_GLASS);
$this->mapSimple(Blocks::HARDENED_GLASS_PANE(), Ids::HARD_GLASS_PANE);

View File

@ -643,6 +643,7 @@ final class BlockStateToBlockObjectDeserializer implements BlockStateDeserialize
$this->map(Ids::GRAVEL, fn() => Blocks::GRAVEL());
$this->map(Ids::GRAY_GLAZED_TERRACOTTA, fn(Reader $in) => Helper::decodeGlazedTerracotta(DyeColor::GRAY(), $in));
$this->map(Ids::GREEN_GLAZED_TERRACOTTA, fn(Reader $in) => Helper::decodeGlazedTerracotta(DyeColor::GREEN(), $in));
$this->map(Ids::HANGING_ROOTS, fn() => Blocks::HANGING_ROOTS());
$this->map(Ids::HARD_GLASS, fn() => Blocks::HARDENED_GLASS());
$this->map(Ids::HARD_GLASS_PANE, fn() => Blocks::HARDENED_GLASS_PANE());
$this->map(Ids::HARD_STAINED_GLASS, function(Reader $in) : Block{