|
PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
|
Inheritance diagram for pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty:
Collaboration diagram for pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty:Public Member Functions | |
| __construct (private string $name, private StateMap $map, private \Closure $getter, private \Closure $setter) | |
| deserialize (object $block, BlockStateReader $in) | |
| deserializePlain (object $block, string $raw) | |
| getName () | |
| getPossibleValues () | |
| serialize (object $block, BlockStateWriter $out) | |
| serializePlain (object $block) | |
@phpstan-template TBlock of object @phpstan-template TValue of int|\UnitEnum @phpstan-implements StringProperty<TBlock>
Definition at line 38 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::__construct | ( | private string | $name, |
| private StateMap | $map, | ||
| private \Closure | $getter, | ||
| private \Closure | $setter ) |
@phpstan-param StateMap<TValue, string> $map @phpstan-param \Closure(TBlock) : TValue $getter @phpstan-param \Closure(TBlock, TValue) : mixed $setter
Definition at line 45 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::deserialize | ( | object | $block, |
| BlockStateReader | $in ) |
@phpstan-param TBlock $block
Implements pocketmine\data\bedrock\block\convert\property\Property.
Definition at line 63 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::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
Implements pocketmine\data\bedrock\block\convert\property\StringProperty.
Definition at line 67 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::getName | ( | ) |
Implements pocketmine\data\bedrock\block\convert\property\Property.
Definition at line 52 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::getPossibleValues | ( | ) |
Implements pocketmine\data\bedrock\block\convert\property\StringProperty.
Definition at line 58 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::serialize | ( | object | $block, |
| BlockStateWriter | $out ) |
@phpstan-param TBlock $block
Implements pocketmine\data\bedrock\block\convert\property\Property.
Definition at line 73 of file ValueFromStringProperty.php.
| pocketmine\data\bedrock\block\convert\property\ValueFromStringProperty::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
Implements pocketmine\data\bedrock\block\convert\property\StringProperty.
Definition at line 77 of file ValueFromStringProperty.php.