mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -30,10 +30,9 @@ use pocketmine\player\Player;
|
||||
use pocketmine\world\BlockTransaction;
|
||||
|
||||
class SeaPickle extends Transparent{
|
||||
/** @var int */
|
||||
protected $count = 1;
|
||||
/** @var bool */
|
||||
protected $underwater = false;
|
||||
|
||||
protected int $count = 1;
|
||||
protected bool $underwater = false;
|
||||
|
||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
||||
$this->count = ($stateMeta & 0x03) + 1;
|
||||
|
Reference in New Issue
Block a user