Skip to content

BoolFromStringProperty ​

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

Implements StringProperty

Methods ​

__construct() ​

php
public function __construct(string $name, string $falseValue, string $trueValue, \Closure $getter, \Closure $setter)

deserialize() ​

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

deserializePlain() ​

php
public function deserializePlain(object $block, string $raw) : void

getName() ​

php
public function getName() : string

getPossibleValues() ​

php
public function getPossibleValues() : array

serialize() ​

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

serializePlain() ​

php
public function serializePlain(object $block) : string

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