PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\data\bedrock\block\convert\property\StringProperty Interface Reference
+ Inheritance diagram for pocketmine\data\bedrock\block\convert\property\StringProperty:
+ Collaboration diagram for pocketmine\data\bedrock\block\convert\property\StringProperty:

Public Member Functions

 deserialize (object $block, BlockStateReader $in)
 
 deserializePlain (object $block, string $raw)
 
 getName ()
 
 getPossibleValues ()
 
 serialize (object $block, BlockStateWriter $out)
 
 serializePlain (object $block)
 

Detailed Description

@phpstan-template TBlock of object @phpstan-extends Property<TBlock>

Definition at line 30 of file StringProperty.php.

Member Function Documentation

◆ deserialize()

◆ deserializePlain()

pocketmine\data\bedrock\block\convert\property\StringProperty::deserializePlain ( object $block,
string $raw )

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 @phpstan-param TBlock $block

Implemented in pocketmine\data\bedrock\block\convert\property\BoolFromStringProperty, and pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty.

◆ getPossibleValues()

pocketmine\data\bedrock\block\convert\property\StringProperty::getPossibleValues ( )

◆ serialize()

◆ serializePlain()

pocketmine\data\bedrock\block\convert\property\StringProperty::serializePlain ( object $block)

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 @phpstan-param TBlock $block

Implemented in pocketmine\data\bedrock\block\convert\property\BoolFromStringProperty, and pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty.


The documentation for this interface was generated from the following file: