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

Public Member Functions

 __construct (private string $name, private int $min, private int $max, private \Closure $getter, private \Closure $setter, private int $offset=0)
 
 deserialize (object $block, BlockStateReader $in)
 
 getName ()
 
 serialize (object $block, BlockStateWriter $out)
 

Static Public Member Functions

static unused (string $name, int $serializedValue)
 

Detailed Description

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

Definition at line 34 of file IntProperty.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\block\convert\property\IntProperty::__construct ( private string $name,
private int $min,
private int $max,
private \Closure $getter,
private \Closure $setter,
private int $offset = 0 )

@phpstan-param \Closure(TBlock) : int $getter @phpstan-param \Closure(TBlock, int) : mixed $setter

Definition at line 39 of file IntProperty.php.

Member Function Documentation

◆ deserialize()

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

@phpstan-param TBlock $block

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

Definition at line 61 of file IntProperty.php.

◆ getName()

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

◆ serialize()

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

@phpstan-param TBlock $block

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

Definition at line 66 of file IntProperty.php.

◆ unused()

static pocketmine\data\bedrock\block\convert\property\IntProperty::unused ( string $name,
int $serializedValue )
static

@phpstan-return self<object>

Definition at line 57 of file IntProperty.php.


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