Skip to content

IntFromRawStateMap ​

class · pocketmine\data\bedrock\block\convert\property\IntFromRawStateMap · source

Implements StateMap

Methods ​

__construct() ​

php
public function __construct(array $serializeMap, array $deserializeAliases = [])

Constructs a bidirectional mapping, given a mapping of internal values -> serialized values, and an optional set of aliases per internal value (used for deserializing invalid serialized values).

getRawToValueMap() ​

php
public function getRawToValueMap() : array

int() ​

php
public static function int(array $serializeMap, array $deserializeAliases = []) : self

printableValue() ​

php
public function printableValue(mixed $value) : string

rawToValue() ​

php
public function rawToValue(int|string $raw) : mixed

string() ​

php
public static function string(array $serializeMap, array $deserializeAliases = []) : self

valueToRaw() ​

php
public function valueToRaw(mixed $value) : int|string

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.