mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Centralize all conversion-related stuff under TypeConverter
instead of having singletons for everything, which are a nightmare to manage for multi version
This commit is contained in:
@ -32,8 +32,9 @@ class RuntimeBlockMappingTest extends TestCase{
|
||||
* @doesNotPerformAssertions
|
||||
*/
|
||||
public function testAllBlockStatesSerialize() : void{
|
||||
$blockTranslator = TypeConverter::getInstance()->getBlockTranslator();
|
||||
foreach(RuntimeBlockStateRegistry::getInstance()->getAllKnownStates() as $state){
|
||||
RuntimeBlockMapping::getInstance()->toRuntimeId($state->getStateId());
|
||||
$blockTranslator->toRuntimeId($state->getStateId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user