PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
|
Public Member Functions | |
map (Block $block, \Closure $serializer) | |
mapLog (Wood $block, string $unstrippedId, string $strippedId) | |
mapSimple (Block $block, string $id) | |
mapSlab (Slab $block, string $singleId, string $doubleId) | |
mapStairs (Stair $block, string $id) | |
registerFlatColorBlockSerializers () | |
serialize (int $stateId) | |
serializeBlock (Block $blockState) | |
Definition at line 184 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::__construct | ( | ) |
Definition at line 200 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::map | ( | Block | $block, |
\Closure | $serializer | ||
) |
@phpstan-template TBlockType of Block @phpstan-param TBlockType $block @phpstan-param \Closure(TBlockType) : Writer $serializer
Definition at line 223 of file BlockObjectToStateSerializer.php.
References pocketmine\block\Block\getTypeId().
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::mapLog | ( | Wood | $block, |
string | $unstrippedId, | ||
string | $strippedId | ||
) |
Definition at line 242 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::mapSimple | ( | Block | $block, |
string | $id | ||
) |
Definition at line 230 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::mapSlab | ( | Slab | $block, |
string | $singleId, | ||
string | $doubleId | ||
) |
Definition at line 234 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::mapStairs | ( | Stair | $block, |
string | $id | ||
) |
Definition at line 238 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::registerFlatColorBlockSerializers | ( | ) |
Definition at line 317 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::serialize | ( | int | $stateId | ) |
Serializes an implementation-defined blockstate ID to NBT for storage.
@phpstan-param BlockStateId $stateId
BlockStateSerializeException |
Implements pocketmine\data\bedrock\block\BlockStateSerializer.
Definition at line 212 of file BlockObjectToStateSerializer.php.
pocketmine\data\bedrock\block\convert\BlockObjectToStateSerializer::serializeBlock | ( | Block | $blockState | ) |
@phpstan-template TBlockType of Block @phpstan-param TBlockType $blockState
BlockStateSerializeException |
Definition at line 252 of file BlockObjectToStateSerializer.php.