mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user