|
PocketMine-MP 5.37.1 git-da6732df2656426fbd1b7898ed06c8286969d2f1
|
Collaboration diagram for pocketmine\data\bedrock\block\BlockStateData:Public Member Functions | |
| __construct (private string $name, private array $states, private int $version) | |
| equals (self $that) | |
| getName () | |
| getState (string $name) | |
| getStates () | |
| getVersion () | |
| getVersionAsString () | |
| toNbt () | |
| toVanillaNbt () | |
Static Public Member Functions | |
| static | current (string $name, array $states) |
| static | fromNbt (CompoundTag $nbt) |
Public Attributes | |
| const | CURRENT_VERSION = WorldDataVersions::BLOCK_STATES |
| const | TAG_NAME = "name" |
| const | TAG_STATES = "states" |
| const | TAG_VERSION = "version" |
Contains the common information found in a serialized blockstate.
Definition at line 39 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::__construct | ( | private string | $name, |
| private array | $states, | ||
| private int | $version ) |
| Tag[] | $states | @phpstan-param array<string, Tag> $states |
Definition at line 50 of file BlockStateData.php.
|
static |
| Tag[] | $states | @phpstan-param array<string, Tag> $states |
Definition at line 60 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::equals | ( | self | $that | ) |
Definition at line 131 of file BlockStateData.php.
|
static |
| BlockStateDeserializeException |
Definition at line 89 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::getName | ( | ) |
Definition at line 64 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::getState | ( | string | $name | ) |
Definition at line 72 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::getStates | ( | ) |
Definition at line 70 of file BlockStateData.php.
Referenced by pocketmine\network\mcpe\convert\BlockStateDictionary\lookupStateIdFromData().
Here is the caller graph for this function:| pocketmine\data\bedrock\block\BlockStateData::getVersion | ( | ) |
Definition at line 76 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::getVersionAsString | ( | ) |
Definition at line 78 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::toNbt | ( | ) |
Encodes the blockstate as a TAG_Compound, but with extra PM-specific metadata, used for fixing bugs in old saved data. This should be used for anything saved to disk.
Definition at line 126 of file BlockStateData.php.
| pocketmine\data\bedrock\block\BlockStateData::toVanillaNbt | ( | ) |
Encodes the blockstate as a TAG_Compound, exactly as it would be in vanilla Bedrock.
Definition at line 111 of file BlockStateData.php.
| const pocketmine\data\bedrock\block\BlockStateData::CURRENT_VERSION = WorldDataVersions::BLOCK_STATES |
Definition at line 40 of file BlockStateData.php.
| const pocketmine\data\bedrock\block\BlockStateData::TAG_NAME = "name" |
Definition at line 42 of file BlockStateData.php.
| const pocketmine\data\bedrock\block\BlockStateData::TAG_STATES = "states" |
Definition at line 43 of file BlockStateData.php.
| const pocketmine\data\bedrock\block\BlockStateData::TAG_VERSION = "version" |
Definition at line 44 of file BlockStateData.php.