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

Public Member Functions

 __construct (private string $name, private StateMap $map, private \Closure $getter, private \Closure $setter)
 
 deserialize (object $block, BlockStateReader $in)
 
 getName ()
 
 serialize (object $block, BlockStateWriter $out)
 

Detailed Description

@phpstan-template TBlock of object @phpstan-template TOption of int|\UnitEnum @phpstan-implements Property<TBlock>

Definition at line 35 of file ValueSetFromIntProperty.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\block\convert\property\ValueSetFromIntProperty::__construct ( private string $name,
private StateMap $map,
private \Closure $getter,
private \Closure $setter )

@phpstan-param StateMap<TOption, int> $map @phpstan-param \Closure(TBlock) : array<TOption> $getter @phpstan-param \Closure(TBlock, array<TOption>) : mixed $setter

Definition at line 44 of file ValueSetFromIntProperty.php.

Member Function Documentation

◆ deserialize()

pocketmine\data\bedrock\block\convert\property\ValueSetFromIntProperty::deserialize ( object $block,
BlockStateReader $in )

@phpstan-param TBlock $block

Implements pocketmine\data\bedrock\block\convert\property\Property.

Definition at line 70 of file ValueSetFromIntProperty.php.

◆ getName()

pocketmine\data\bedrock\block\convert\property\ValueSetFromIntProperty::getName ( )

◆ serialize()

pocketmine\data\bedrock\block\convert\property\ValueSetFromIntProperty::serialize ( object $block,
BlockStateWriter $out )

@phpstan-param TBlock $block

Implements pocketmine\data\bedrock\block\convert\property\Property.

Definition at line 83 of file ValueSetFromIntProperty.php.


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