Added calcite

This commit is contained in:
Dylan K. Taylor
2022-07-02 23:54:51 +01:00
parent b818ed0d08
commit 3f937605ac
6 changed files with 9 additions and 1 deletions

View File

@ -385,6 +385,7 @@ final class BlockObjectToBlockStateSerializer implements BlockStateSerializer{
return Writer::create(Ids::CAKE)
->writeInt(StateNames::BITE_COUNTER, $block->getBites());
});
$this->mapSimple(Blocks::CALCITE(), Ids::CALCITE);
$this->map(Blocks::CARPET(), function(Carpet $block) : Writer{
return Writer::create(Ids::CARPET)
->writeColor($block->getColor());

View File

@ -211,6 +211,7 @@ final class BlockStateToBlockObjectDeserializer implements BlockStateDeserialize
return Blocks::CAKE()
->setBites($in->readBoundedInt(StateNames::BITE_COUNTER, 0, 6));
});
$this->map(Ids::CALCITE, fn() => Blocks::CALCITE());
$this->map(Ids::CARPET, function(Reader $in) : Block{
return Blocks::CARPET()
->setColor($in->readColor());