PocketMine-MP 5.42.2 git-40e2639b20bdc4ddba49d9f7f5fa0d5e92aa266f
Loading...
Searching...
No Matches
pocketmine\data\bedrock\block\convert\BlockStateWriter Class Reference
+ Collaboration diagram for pocketmine\data\bedrock\block\convert\BlockStateWriter:

Public Member Functions

 __construct (private string $id)
 
 getBlockStateData ()
 
 writeBool (string $name, bool $value)
 
 writeInt (string $name, int $value)
 
 writeString (string $name, string $value)
 

Static Public Member Functions

static create (string $id)
 

Detailed Description

Definition at line 32 of file BlockStateWriter.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\data\bedrock\block\convert\BlockStateWriter::__construct ( private string $id)

Definition at line 40 of file BlockStateWriter.php.

Member Function Documentation

◆ create()

static pocketmine\data\bedrock\block\convert\BlockStateWriter::create ( string $id)
static

Definition at line 44 of file BlockStateWriter.php.

◆ getBlockStateData()

pocketmine\data\bedrock\block\convert\BlockStateWriter::getBlockStateData ( )

Definition at line 66 of file BlockStateWriter.php.

◆ writeBool()

pocketmine\data\bedrock\block\convert\BlockStateWriter::writeBool ( string $name,
bool $value )
Returns
$this

Definition at line 49 of file BlockStateWriter.php.

Referenced by pocketmine\data\bedrock\block\convert\property\DummyProperty\serialize().

+ Here is the caller graph for this function:

◆ writeInt()

pocketmine\data\bedrock\block\convert\BlockStateWriter::writeInt ( string $name,
int $value )
Returns
$this

Definition at line 55 of file BlockStateWriter.php.

◆ writeString()

pocketmine\data\bedrock\block\convert\BlockStateWriter::writeString ( string $name,
string $value )
Returns
$this

Definition at line 61 of file BlockStateWriter.php.


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