Rename BlockIds -> BlockLegacyIds

This commit is contained in:
Dylan K. Taylor
2019-03-23 19:46:31 +00:00
parent 79ef8e0803
commit 2a3e6dcf00
83 changed files with 541 additions and 541 deletions

View File

@ -37,7 +37,7 @@ class BlockTest extends TestCase{
* Test registering a block which would overwrite another block, without forcing it
*/
public function testAccidentalOverrideBlock() : void{
$block = new MyCustomBlock(new BlockIdentifier(BlockIds::COBBLESTONE), "Cobblestone");
$block = new MyCustomBlock(new BlockIdentifier(BlockLegacyIds::COBBLESTONE), "Cobblestone");
$this->expectException(\InvalidArgumentException::class);
BlockFactory::register($block);
}
@ -46,7 +46,7 @@ class BlockTest extends TestCase{
* Test registering a block deliberately overwriting another block works as expected
*/
public function testDeliberateOverrideBlock() : void{
$block = new MyCustomBlock(new BlockIdentifier(BlockIds::COBBLESTONE), "Cobblestone");
$block = new MyCustomBlock(new BlockIdentifier(BlockLegacyIds::COBBLESTONE), "Cobblestone");
BlockFactory::register($block, true);
self::assertInstanceOf(MyCustomBlock::class, BlockFactory::get($block->getId()));
}
@ -101,12 +101,12 @@ class BlockTest extends TestCase{
*/
public function blockGetProvider() : array{
return [
[BlockIds::STONE, 5],
[BlockIds::STONE, 15],
[BlockIds::GOLD_BLOCK, 0],
[BlockIds::WOODEN_PLANKS, 5],
[BlockIds::SAND, 0],
[BlockIds::GOLD_BLOCK, 0]
[BlockLegacyIds::STONE, 5],
[BlockLegacyIds::STONE, 15],
[BlockLegacyIds::GOLD_BLOCK, 0],
[BlockLegacyIds::WOODEN_PLANKS, 5],
[BlockLegacyIds::SAND, 0],
[BlockLegacyIds::GOLD_BLOCK, 0]
];
}