Added Block->getRuntimeId(), clean up some mess

This commit is contained in:
Dylan K. Taylor
2018-09-19 16:16:10 +01:00
parent 107192c753
commit 4bc0d850b1
7 changed files with 18 additions and 20 deletions

View File

@ -109,6 +109,14 @@ class Block extends Position implements BlockIds, Metadatable{
return $this->itemId ?? $this->getId();
}
/**
* @internal
* @return int
*/
public function getRuntimeId() : int{
return BlockFactory::toStaticRuntimeId($this->getId(), $this->getDamage());
}
/**
* @return int
*/