Use typed properties in block namespace

This commit is contained in:
Dylan K. Taylor
2021-05-22 23:52:31 +01:00
parent 73c229a236
commit f68b9e79e1
68 changed files with 134 additions and 246 deletions

View File

@ -37,8 +37,7 @@ use pocketmine\world\BlockTransaction;
class Hopper extends Transparent{
use PoweredByRedstoneTrait;
/** @var int */
private $facing = Facing::DOWN;
private int $facing = Facing::DOWN;
public function readStateFromData(int $id, int $stateMeta) : void{
$facing = BlockDataSerializer::readFacing($stateMeta & 0x07);