Skip to content

StringProperty ​

interface · pocketmine\data\bedrock\block\convert\property\StringProperty · source

Extends Property

Methods ​

deserializePlain() ​

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

TODO: These are only used for flattened IDs for now, we should expand their use to all properties in the future and remove the dependencies on BlockStateReader and BlockStateWriter

getPossibleValues() ​

php
public function getPossibleValues() : array

serializePlain() ​

php
public function serializePlain(object $block) : string

TODO: These are only used for flattened IDs for now, we should expand their use to all properties in the future and remove the dependencies on BlockStateReader and BlockStateWriter

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