Skip to content

BoolProperty ​

final class · pocketmine\data\bedrock\block\convert\property\BoolProperty · source

Implements Property

Methods ​

__construct() ​

php
public function __construct(string $name, \Closure $getter, \Closure $setter, bool $inverted = false, ?bool $defaultIfMissing = null)

deserialize() ​

php
public function deserialize(object $block, \pocketmine\data\bedrock\block\convert\BlockStateReader $in) : void

getName() ​

php
public function getName() : string

serialize() ​

php
public function serialize(object $block, \pocketmine\data\bedrock\block\convert\BlockStateWriter $out) : void

unused() ​

php
public static function unused(string $name, bool $serializedValue) : self

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.