Added netherite blocks and items

This commit is contained in:
Dylan K. Taylor
2022-07-14 20:39:09 +01:00
parent d4f4fda442
commit ba2baba7cc
17 changed files with 119 additions and 19 deletions

View File

@ -1033,6 +1033,7 @@ final class BlockObjectToBlockStateSerializer implements BlockStateSerializer{
$this->map(Blocks::MUSHROOM_STEM(), fn() => Writer::create(Ids::BROWN_MUSHROOM_BLOCK)
->writeInt(StateNames::HUGE_MUSHROOM_BITS, BlockLegacyMetadata::MUSHROOM_BLOCK_STEM));
$this->mapSimple(Blocks::MYCELIUM(), Ids::MYCELIUM);
$this->mapSimple(Blocks::NETHERITE(), Ids::NETHERITE_BLOCK);
$this->mapSimple(Blocks::NETHERRACK(), Ids::NETHERRACK);
$this->mapSimple(Blocks::NETHER_BRICKS(), Ids::NETHER_BRICK);
$this->mapSimple(Blocks::NETHER_BRICK_FENCE(), Ids::NETHER_BRICK_FENCE);

View File

@ -840,6 +840,7 @@ final class BlockStateToBlockObjectDeserializer implements BlockStateDeserialize
->setAge($in->readBoundedInt(StateNames::AGE, 0, 3));
});
$this->map(Ids::NETHER_WART_BLOCK, fn() => Blocks::NETHER_WART_BLOCK());
$this->map(Ids::NETHERITE_BLOCK, fn() => Blocks::NETHERITE());
$this->map(Ids::NETHERRACK, fn() => Blocks::NETHERRACK());
$this->map(Ids::NETHERREACTOR, fn() => Blocks::NETHER_REACTOR_CORE());
$this->mapStairs(Ids::NORMAL_STONE_STAIRS, fn() => Blocks::STONE_STAIRS());